BigW Consortium Gitlab

Commit b08f9292 by Regis

interval event handlers - keep page:fetch listener null

parent db43813a
......@@ -60,10 +60,9 @@
};
const removeAll = () => {
removeTimeIntervals();
window.removeEventListener('beforeunload', () => {});
window.removeEventListener('focus', () => {});
window.removeEventListener('blur', () => {});
window.removeEventListener('beforeunload', removeTimeIntervals);
window.removeEventListener('focus', startIntervalLoops);
window.removeEventListener('blur', removeTimeIntervals);
// turbolinks event handler
document.removeEventListener('page:fetch', () => {});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment