mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
🔧 Prompt User to Save Before Page Unload
This commit is contained in:
@@ -1328,6 +1328,10 @@ export default mixins(
|
|||||||
|
|
||||||
document.addEventListener('keydown', this.keyDown);
|
document.addEventListener('keydown', this.keyDown);
|
||||||
document.addEventListener('keyup', this.keyUp);
|
document.addEventListener('keyup', this.keyUp);
|
||||||
|
window.onbeforeunload = this.confirmSave;
|
||||||
|
},
|
||||||
|
async confirmSave(e: Event) {
|
||||||
|
window.confirm();
|
||||||
},
|
},
|
||||||
__addConnection (connection: [IConnection, IConnection], addVisualConnection = false) {
|
__addConnection (connection: [IConnection, IConnection], addVisualConnection = false) {
|
||||||
if (addVisualConnection === true) {
|
if (addVisualConnection === true) {
|
||||||
|
|||||||
Reference in New Issue
Block a user