1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-07-19 21:29:40 +02:00
mealie/frontend/composables/use-navigation-warning.ts
2024-01-06 21:49:29 +00:00

7 lines
179 B
TypeScript

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