Remove logging

This commit is contained in:
Elijah Mock 2024-02-05 20:22:10 +00:00
parent abf4b7706f
commit 70ce34d6c9

View File

@ -9,7 +9,6 @@ export function useNavigationWarning() {
* or closing the tab.
*/
const activateNavigationWarning = () => {
console.log("ACTIVATE");
window.onbeforeunload = () => true;
}
@ -17,6 +16,5 @@ const activateNavigationWarning = () => {
* Disables the warning when navigating to a page
*/
const deactivateNavigationWarning = () => {
console.log("deACTIVATE");
window.onbeforeunload = null;
}