Commit 4e01bcfb authored by Alex Beregszaszi's avatar Alex Beregszaszi Committed by Dave Hoover

Support import statements where path if './file.sol'

parent 0683bb55
...@@ -723,6 +723,9 @@ var run = function() { ...@@ -723,6 +723,9 @@ var run = function() {
if (getFiles().indexOf(fileKey(m)) !== -1) { if (getFiles().indexOf(fileKey(m)) !== -1) {
files[m] = window.localStorage[fileKey(m)]; files[m] = window.localStorage[fileKey(m)];
reloop = true; reloop = true;
} else if (m.startsWith('./') && getFiles().indexOf(fileKey(m.slice(2))) !== -1) {
files[m] = window.localStorage[fileKey(m.slice(2))];
reloop = true;
} else if (m in cachedRemoteFiles) { } else if (m in cachedRemoteFiles) {
files[m] = cachedRemoteFiles[m]; files[m] = cachedRemoteFiles[m];
reloop = true; reloop = true;
......
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