Explorar o código

Merge pull request #3304 from blink1073/fix-loadcss

Fix loading of remote css
Ian Rose %!s(int64=7) %!d(string=hai) anos
pai
achega
8a82a223a8
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  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';