Make sure session is defined initially

pull/1/head
Denton Liu 9 years ago
parent 49caabdef6
commit 46f77faa3f
  1. 1
      src/app/editor.js

@ -138,6 +138,7 @@ function Editor (loadingFromGist) {
untitledCount = (untitledCount - 0) + 1;
}
SOL_CACHE_FILE = SOL_CACHE_UNTITLED + untitledCount;
files.push(SOL_CACHE_FILE);
window.localStorage[SOL_CACHE_FILE] = window.localStorage['sol-cache'] || BALLOT_EXAMPLE;
window.localStorage.removeItem('sol-cache');
}

Loading…
Cancel
Save