mirror of
https://github.com/flarum/framework.git
synced 2024-11-26 02:10:09 +08:00
Don't overwrite context.onunload
This commit is contained in:
parent
807c9295a4
commit
cb2927f317
|
@ -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());
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user