Cleared session variable when creating new file

pull/1/head
Denton Liu 9 years ago
parent 32262127a2
commit 3a84e22164
  1. 1
      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();

Loading…
Cancel
Save