Commit 958d2f88 authored by Nicolas Widart's avatar Nicolas Widart Committed by GitHub

Merge pull request #409 from mikemand/upgrade-pusher

Upgrade Pusher client and sending additional options to the plugin
parents 84e19ce8 ebdba215
......@@ -90,12 +90,14 @@
<script src="{{ mix('js/app.js') }}"></script>
<?php if (is_module_enabled('Notification')): ?>
<script src="https://js.pusher.com/3.0/pusher.min.js"></script>
<script src="https://js.pusher.com/4.1/pusher.min.js"></script>
<script src="{{ Module::asset('notification:js/pusherNotifications.js') }}"></script>
<script>
$(".notifications-list").pusherNotifications({
$('.notifications-list').pusherNotifications({
pusherKey: '{{ config('broadcasting.connections.pusher.key') }}',
loggedInUserId: {{ $currentUser->id }}
pusherCluster: '{{ config('broadcasting.connections.pusher.options.cluster') }}',
pusherEncrypted: {{ config('broadcasting.connections.pusher.options.encrypted') }},
loggedInUserId: {{ $currentUser->id }},
});
</script>
<?php endif; ?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment