Skip to content

Commit

Permalink
Merge pull request #409 from mikemand/upgrade-pusher
Browse files Browse the repository at this point in the history
Upgrade Pusher client and sending additional options to the plugin
  • Loading branch information
nWidart authored Oct 10, 2017
2 parents 84e19ce + ebdba21 commit 958d2f8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Themes/Adminlte/views/layouts/master.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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; ?>
Expand Down

0 comments on commit 958d2f8

Please sign in to comment.