|
@@ -1006,7 +1006,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
|
|
|
if (!DomUtil.testIgnoredPath(resourceURL) && DomUtil.testValidPath(resourceURL, baseURI, options.url)) {
|
|
if (!DomUtil.testIgnoredPath(resourceURL) && DomUtil.testValidPath(resourceURL, baseURI, options.url)) {
|
|
|
resourceURL = new URL(match.resourceURL, baseURI).href;
|
|
resourceURL = new URL(match.resourceURL, baseURI).href;
|
|
|
if (DomUtil.testValidURL(resourceURL, baseURI, options.url)) {
|
|
if (DomUtil.testValidURL(resourceURL, baseURI, options.url)) {
|
|
|
- const downloadOptions = { asDataURI: false, maxResourceSize: options.maxResourceSize, maxResourceSizeEnabled: options.maxResourceSizeEnabled };
|
|
|
|
|
|
|
+ const downloadOptions = { asDataURI: false, maxResourceSize: options.maxResourceSize, maxResourceSizeEnabled: options.maxResourceSizeEnabled, validateTextContentType: true };
|
|
|
let importedStylesheetContent = await Download.getContent(resourceURL, downloadOptions);
|
|
let importedStylesheetContent = await Download.getContent(resourceURL, downloadOptions);
|
|
|
importedStylesheetContent = DomUtil.wrapMediaQuery(importedStylesheetContent, match.media);
|
|
importedStylesheetContent = DomUtil.wrapMediaQuery(importedStylesheetContent, match.media);
|
|
|
if (stylesheetContent.includes(cssImport)) {
|
|
if (stylesheetContent.includes(cssImport)) {
|