diff --git a/main.js b/main.js index 2bc81be..f29c32a 100644 --- a/main.js +++ b/main.js @@ -27,7 +27,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; @@ -1989,11 +1988,6 @@ function postpone() }); } -function inactivityalert() -{ - alert("Last save was one hour ago. Should you refresh?"); -} - function save() { clearTimeout(workerid); @@ -2059,8 +2053,6 @@ function save() { console.log("...data saved on server"); saved = true; - clearTimeout(inactivityid); - inactivityid = setTimeout(inactivityalert, 60 * 60 * 1000); }) .catch(remotecallfailed) .finally(() =>