From 1c865f623dca40655f575af32901ebfe983c16d3 Mon Sep 17 00:00:00 2001 From: d11e9 Date: Sun, 4 Oct 2015 21:31:01 +0000 Subject: [PATCH] fix imports for new files storage scheme --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 3bb9328dd4..9eb7185c49 100644 --- a/index.html +++ b/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;