Merge pull request #31 from Denton-L/new-file

Fix to Persistence Issue
pull/1/head
chriseth 9 years ago
commit 56963616ed
  1. 2
      src/app.js

@ -316,9 +316,11 @@ var run = function() {
var FILE_SCROLL_DELTA = 300;
$('.newFile').on('click', function() {
untitledCount = '';
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