File name must be processed by utils.fileKey()

pull/1/head
Alex Beregszaszi 8 years ago
parent 5365e4457d
commit b1eafa1efc
  1. 4
      src/app/editor.js

@ -172,8 +172,8 @@ function Editor (loadingFromGist, storage) {
function setupStuff (files) {
if (files.length === 0) {
if (loadingFromGist) return;
files.push(examples.ballot.name);
storage.set(examples.ballot.name, examples.ballot.content);
files.push(utils.fileKey(examples.ballot.name));
storage.set(utils.fileKey(examples.ballot.name), examples.ballot.content);
}
SOL_CACHE_FILE = files[0];

Loading…
Cancel
Save