diff --git a/extensions/pusher/js/forum/src/main.js b/extensions/pusher/js/forum/src/main.js index 9de46dc24..caace239d 100644 --- a/extensions/pusher/js/forum/src/main.js +++ b/extensions/pusher/js/forum/src/main.js @@ -55,7 +55,7 @@ app.initializers.add('pusher', () => { } }); - context.onunload = () => channels.main.unbind(); + extend(context, 'onunload', () => channels.main.unbind()); }); }); @@ -104,7 +104,7 @@ app.initializers.add('pusher', () => { } }); - context.onunload = () => channels.main.unbind(); + extend(context, 'onunload', () => channels.main.unbind()); }); });