fix imports for new files storage scheme

pull/1/head
d11e9 9 years ago
parent 4698cc1223
commit 1c865f623d
  1. 4
      index.html

@ -369,13 +369,13 @@ THE SOFTWARE.
var matches = [];
var match;
while ((match = importRegex.exec(input)) !== null) {
if (match[1] && solFiles.indexOf(match[1]) !== -1) {
if (match[1] && getFiles().indexOf(fileKey(match[1])) !== -1) {
imports.push(match[1])
matches.push(match[0])
}
}
for (var i in imports) {
imported = includeLocalImports(window.localStorage.getItem(imports[i]))
imported = includeLocalImports(window.localStorage.getItem( fileKey(imports[i]) ))
input = input.replace(matches[i], imported);
}
return input;

Loading…
Cancel
Save