feat: confirm before closing the browser tab (#723)
when the editor is open and file is changed
This commit is contained in:
1 parent
8a00b373d5
commit
1a68218267
3 files changed
+36
-8
No files matched your search
@@ -263,3 +263,8 @@ export function getMacroParams(macro: { gcode: string }): PrinterStateMacroParam
|
||||
|
||||
return ret
|
||||
}
|
||||
|
||||
export function windowBeforeUnloadFunction(e: BeforeUnloadEvent) {
|
||||
e.preventDefault()
|
||||
e.returnValue = ''
|
||||
}
|
||||
Reference in new issue
Block a user