summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGubolin <gubolin@fantasymail.de>2014-12-14 10:58:18 +0100
committerGubolin <gubolin@fantasymail.de>2014-12-14 10:58:18 +0100
commit82eac91fbd57442f6ad237e3ff8fda3ec4717acc (patch)
tree962649d58defc0a289dfa99e9d13a7e5708d7d9f
parent8338384bf572beb06ebd12a0c9af18029e99262a (diff)
downloadsnap-82eac91fbd57442f6ad237e3ff8fda3ec4717acc.tar.gz
snap-82eac91fbd57442f6ad237e3ff8fda3ec4717acc.zip
autosave every 5 minutes
-rw-r--r--gui.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/gui.js b/gui.js
index 8cd9403..62c0268 100644
--- a/gui.js
+++ b/gui.js
@@ -228,6 +228,8 @@ IDE_Morph.prototype.init = function (isAutoFill) {
// override inherited properites:
this.color = this.backgroundColor;
+
+ setInterval(this.save, 1000 * 60 * 60 * 5); // every 5 minutes
};
IDE_Morph.prototype.openIn = function (world) {