Browse Source

Update url.ts

Brian Cullinan 7 years ago
parent
commit
538b43e9c7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/coreutils/src/url.ts

+ 2 - 2
packages/coreutils/src/url.ts

@@ -97,8 +97,8 @@ namespace URLExt {
    */
   export
   function isLocal(url: string): boolean {
-    switch (parse(url).hostname) {
-    case location.hostname:
+    switch (parse(url).host) {
+    case location.host:
     case '':
       return true;
     default: