|
|
@@ -359,7 +359,7 @@ const SingleFileCore = (() => {
|
|
|
const match = DomUtil.matchImport(cssImport);
|
|
|
if (match) {
|
|
|
const resourceURL = DomUtil.normalizeURL(match.resourceURL);
|
|
|
- if (resourceURL != baseURI && DomUtil.testValidPath(match.resourceURL)) {
|
|
|
+ if (resourceURL != baseURI) {
|
|
|
let importedStylesheetContent = await Download.getContent(new URL(match.resourceURL, baseURI).href);
|
|
|
importedStylesheetContent = DomUtil.wrapMediaQuery(importedStylesheetContent, match.media);
|
|
|
if (stylesheetContent.indexOf(cssImport) != -1) {
|
|
|
@@ -390,7 +390,7 @@ const SingleFileCore = (() => {
|
|
|
|
|
|
static async resolveLinkStylesheetURLs(resourceURL, baseURI, media) {
|
|
|
resourceURL = DomUtil.normalizeURL(resourceURL);
|
|
|
- if (resourceURL && resourceURL != baseURI && DomUtil.testValidPath(resourceURL)) {
|
|
|
+ if (resourceURL && resourceURL != baseURI) {
|
|
|
let stylesheetContent = await Download.getContent(resourceURL);
|
|
|
stylesheetContent = await DomProcessorHelper.resolveImportURLs(stylesheetContent, resourceURL);
|
|
|
stylesheetContent = DomUtil.wrapMediaQuery(stylesheetContent, media);
|