mirror of
https://github.com/hay-kot/mealie.git
synced 2025-07-12 08:07:14 -07:00
7 lines
179 B
TypeScript
7 lines
179 B
TypeScript
export const activateNavigationWarning = () => {
|
|
window.onbeforeunload = () => true;
|
|
}
|
|
|
|
export const deactivateNavigationWarning = () => {
|
|
window.onbeforeunload = null;
|
|
}
|