1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-07-19 05:09:40 +02:00
mealie/frontend/composables/use-navigation-warning.ts

8 lines
179 B
TypeScript
Raw Normal View History

export const activateNavigationWarning = () => {
window.onbeforeunload = () => true;
}
export const deactivateNavigationWarning = () => {
window.onbeforeunload = null;
}