Prevent user from accidentally leaving the page
This commit is contained in:
parent
d57127cc84
commit
69200c7854
1 changed files with 5 additions and 0 deletions
|
@ -667,6 +667,11 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Prevent user from accidentally leaving the page
|
||||||
|
window.onbeforeunload = function(event) {
|
||||||
|
event.preventDefault();
|
||||||
|
};
|
||||||
|
|
||||||
}]
|
}]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue