Browse Source

Merge pull request #3304 from blink1073/fix-loadcss

Fix loading of remote css
Ian Rose 7 years ago
parent
commit
8a82a223a8
1 changed files with 5 additions and 1 deletions
  1. 5 1
      packages/apputils/src/thememanager.ts

+ 5 - 1
packages/apputils/src/thememanager.ts

@@ -120,7 +120,11 @@ class ThemeManager {
     const link = document.createElement('link');
     const baseUrl = PageConfig.getOption('themePath');
     const delegate = new PromiseDelegate<void>();
-    const href = URLExt.join(baseUrl, path);
+    let href = URLExt.join(baseUrl, path);
+
+    if (!URLExt.isLocal(path)) {
+      href = path;
+    }
 
     link.rel = 'stylesheet';
     link.type = 'text/css';