diff --git a/extensions/pusher/js/src/forum/index.js b/extensions/pusher/js/src/forum/index.js index 71c2584bb..e9cef2b4c 100644 --- a/extensions/pusher/js/src/forum/index.js +++ b/extensions/pusher/js/src/forum/index.js @@ -10,7 +10,7 @@ import Button from 'flarum/components/Button'; app.initializers.add('flarum-pusher', () => { const loadPusher = m.deferred(); - $.getScript('//js.pusher.com/3.0/pusher.min.js', () => { + $.getScript('//cdn.jsdelivr.net/npm/pusher-js@3.0.0/dist/pusher.min.js', () => { const socket = new Pusher(app.forum.attribute('pusherKey'), { authEndpoint: app.forum.attribute('apiUrl') + '/pusher/auth', cluster: app.forum.attribute('pusherCluster'),