1
0
mirror of https://github.com/flarum/core.git synced 2025-07-17 14:51:19 +02:00

Don't overwrite context.onunload

This commit is contained in:
Toby Zerner
2015-08-05 19:19:22 +09:30
parent 807c9295a4
commit cb2927f317

View File

@@ -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());
});
});