|
@@ -632,7 +632,7 @@ this.SingleFileCore = (() => {
|
|
|
try {
|
|
try {
|
|
|
const dataURI = await batchRequest.addURL(new URL(resourceURL, baseURI).href);
|
|
const dataURI = await batchRequest.addURL(new URL(resourceURL, baseURI).href);
|
|
|
resourceElement.setAttribute(attributeName, dataURI);
|
|
resourceElement.setAttribute(attributeName, dataURI);
|
|
|
- } catch (e) {
|
|
|
|
|
|
|
+ } catch (error) {
|
|
|
// ignored
|
|
// ignored
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -660,7 +660,7 @@ this.SingleFileCore = (() => {
|
|
|
try {
|
|
try {
|
|
|
const dataURI = await batchRequest.addURL(new URL(resourceURL, baseURI).href);
|
|
const dataURI = await batchRequest.addURL(new URL(resourceURL, baseURI).href);
|
|
|
return dataURI + (srcsetValue.w ? " " + srcsetValue.w + "w" : srcsetValue.d ? " " + srcsetValue.d + "x" : "");
|
|
return dataURI + (srcsetValue.w ? " " + srcsetValue.w + "w" : srcsetValue.d ? " " + srcsetValue.d + "x" : "");
|
|
|
- } catch (e) {
|
|
|
|
|
|
|
+ } catch (error) {
|
|
|
// ignored
|
|
// ignored
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -683,7 +683,7 @@ this.SingleFileCore = (() => {
|
|
|
if (doc.querySelector(selector)) {
|
|
if (doc.querySelector(selector)) {
|
|
|
cssRules.push(rule.cssText);
|
|
cssRules.push(rule.cssText);
|
|
|
}
|
|
}
|
|
|
- } catch (e) {
|
|
|
|
|
|
|
+ } catch (error) {
|
|
|
cssRules.push(rule.cssText);
|
|
cssRules.push(rule.cssText);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|