mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2026-10-14 03:50:46 +02:00
🔧 Prompt User to Save Before Page Unload
This commit is contained in:
1 parent
dc40e7c502
commit
f4022c6cd5
1 file changed
+4
@@ -1328,6 +1328,10 @@ export default mixins(
|
||||
|
||||
document.addEventListener('keydown', this.keyDown);
|
||||
document.addEventListener('keyup', this.keyUp);
|
||||
window.onbeforeunload = this.confirmSave;
|
||||
},
|
||||
async confirmSave(e: Event) {
|
||||
window.confirm();
|
||||
},
|
||||
__addConnection (connection: [IConnection, IConnection], addVisualConnection = false) {
|
||||
if (addVisualConnection === true) {
|
||||
|
||||
Reference in new issue
Block a user