commit | bc6f6f9e5367fd5c81bdda29a62f199549f11b31 | [log] [tgz] |
---|---|---|
author | Jacob MacDonald <jakemac@google.com> | Tue Jan 27 14:48:21 2015 -0800 |
committer | Jacob MacDonald <jakemac@google.com> | Tue Jan 27 14:48:21 2015 -0800 |
tree | 36b49012322ccfd936c1be5097d01977bf6e42e3 | |
parent | 1693f0984270e21139003bb24850a1eff366e16a [diff] |
add support for http as well as file
diff --git a/lib/src/mirror_loader.dart b/lib/src/mirror_loader.dart index e37801b..f3e2689 100644 --- a/lib/src/mirror_loader.dart +++ b/lib/src/mirror_loader.dart
@@ -148,7 +148,7 @@ var package; var filePath; Uri uri = declaration.uri; - if (uri.scheme == 'file') { + if (uri.scheme == 'file' || uri.scheme.startsWith('http')) { filePath = path.url.relative( uri.path, from: path.url.dirname(_root.uri.path)); } else if (uri.scheme == 'package') {