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

Fixes https://github.com/chriseth/browser-solidity/issues/108
pull/1/head
Alex Beregszaszi 9 years ago committed by Dave Hoover
parent 0683bb5597
commit 4e01bcfbb7
  1. 3
      src/app.js

@ -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;

Loading…
Cancel
Save