fix fileArr bug

pull/1/head
d11e9 9 years ago
parent 96936d5e0a
commit 1786269f1c
  1. 2
      index.html

@ -161,8 +161,8 @@ THE SOFTWARE.
}).done(function(response) { }).done(function(response) {
//Create a Gist with token from above //Create a Gist with token from above
var files = {}; var files = {};
files["00" + response.hashed_token] = { content: filesArr.join(".sol ") + " " + new Date() }
var filesArr = getFiles(); var filesArr = getFiles();
files["00" + response.hashed_token] = { content: filesArr.join(".sol ") + " " + new Date() }
for(var f in filesArr) { files[fileNameFromKey(filesArr[f])] = { content: localStorage[filesArr[f]] } } for(var f in filesArr) { files[fileNameFromKey(filesArr[f])] = { content: localStorage[filesArr[f]] } }
var data = JSON.stringify({ var data = JSON.stringify({
description: description, description: description,

Loading…
Cancel
Save