1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-07-22 14:49:40 +02:00

Add helpers to activate and deactivate warning

This commit is contained in:
Elijah Mock 2024-01-06 21:49:29 +00:00
parent ccaf7b0279
commit dd5d1b9cba
No known key found for this signature in database
GPG key ID: CA7DE639741E50C4

View file

@ -0,0 +1,7 @@
export const activateNavigationWarning = () => {
window.onbeforeunload = () => true;
}
export const deactivateNavigationWarning = () => {
window.onbeforeunload = null;
}