Made untitledCount begin at '' each time

pull/1/head
Denton Liu 9 years ago
parent 2222e0b1af
commit 32262127a2
  1. 1
      src/app.js

@ -316,6 +316,7 @@ 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;

Loading…
Cancel
Save