mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-31 02:59:42 +02:00
Remove logging
This commit is contained in:
parent
abf4b7706f
commit
70ce34d6c9
1 changed files with 0 additions and 2 deletions
|
@ -9,7 +9,6 @@ export function useNavigationWarning() {
|
||||||
* or closing the tab.
|
* or closing the tab.
|
||||||
*/
|
*/
|
||||||
const activateNavigationWarning = () => {
|
const activateNavigationWarning = () => {
|
||||||
console.log("ACTIVATE");
|
|
||||||
window.onbeforeunload = () => true;
|
window.onbeforeunload = () => true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -17,6 +16,5 @@ const activateNavigationWarning = () => {
|
||||||
* Disables the warning when navigating to a page
|
* Disables the warning when navigating to a page
|
||||||
*/
|
*/
|
||||||
const deactivateNavigationWarning = () => {
|
const deactivateNavigationWarning = () => {
|
||||||
console.log("deACTIVATE");
|
|
||||||
window.onbeforeunload = null;
|
window.onbeforeunload = null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue