diff --git a/src/app/compiler.js b/src/app/compiler.js index 357d534797..a18e2ab44d 100644 --- a/src/app/compiler.js +++ b/src/app/compiler.js @@ -250,6 +250,9 @@ function Compiler (editor, handleGithubCall) { cb(null, 'Unable to import "' + m + '"'); }); return; + } else if (/^[^:]*:\/\//.exec(m)) { + cb(null, 'Unable to import "' + m + '": Unsupported URL'); + return; } else { cb(null, 'Unable to import "' + m + '"'); return;