Skip to content

Commit

Permalink
Upgrade Pusher client
Browse files Browse the repository at this point in the history
Signed-off-by: Micheal Mand <micheal@kmdwebdesigns.com>
  • Loading branch information
mikemand committed Oct 10, 2017
1 parent 1327372 commit ebdba21
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 ebdba21

Please sign in to comment.