Commit 1c865f62 authored by d11e9's avatar d11e9

fix imports for new files storage scheme

parent 4698cc12
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment