From 3a84e2216475a0dd701efc00e20aac63322317f1 Mon Sep 17 00:00:00 2001 From: Denton Liu Date: Wed, 25 May 2016 13:48:06 -0400 Subject: [PATCH] Cleared session variable when creating new file --- src/app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app.js b/src/app.js index 8d22a52905..eb77c7d071 100644 --- a/src/app.js +++ b/src/app.js @@ -320,6 +320,7 @@ var run = function() { while (window.localStorage[SOL_CACHE_UNTITLED + untitledCount]) untitledCount = (untitledCount - 0) + 1; SOL_CACHE_FILE = SOL_CACHE_UNTITLED + untitledCount; + sessions[SOL_CACHE_FILE] = null; window.localStorage[SOL_CACHE_FILE] = ''; updateFiles();