From 82eac91fbd57442f6ad237e3ff8fda3ec4717acc Mon Sep 17 00:00:00 2001 From: Gubolin Date: Sun, 14 Dec 2014 10:58:18 +0100 Subject: autosave every 5 minutes --- gui.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gui.js') 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) { -- cgit v1.3.1