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:
@@ -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());
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user