From e8f1b739943714b81da7358698080ac3eee933e7 Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Mon, 25 Sep 2023 16:41:41 +0200 Subject: [PATCH] dropped inactivity alert --- main.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/main.js b/main.js index 71cf292..04db26c 100644 --- a/main.js +++ b/main.js @@ -26,7 +26,6 @@ var codelanguages = ["xml", "js", "sql"]; var currentnote = null; var fileindex = 0; var workerid = null; -var inactivityid = null; var backup = ""; var localdata = null; var saved = true; @@ -1972,11 +1971,6 @@ function postpone() }); } -function inactivityalert() -{ - alert("Last save was one hour ago. Should you refresh?"); -} - function save() { clearTimeout(workerid); @@ -2042,8 +2036,6 @@ function save() { console.log("...data saved on server"); saved = true; - clearTimeout(inactivityid); - inactivityid = setTimeout(inactivityalert, 60 * 60 * 1000); }) .catch(remotecallfailed) .finally(() =>