|
|
@@ -1751,6 +1751,8 @@ this.singlefile.lib.core = this.singlefile.lib.core || (() => {
|
|
|
let resourceURL = resourceElement.getAttribute(attributeName);
|
|
|
if (resourceURL != null) {
|
|
|
resourceURL = normalizeURL(resourceURL);
|
|
|
+ let originURL = resourceElement.dataset.singleFileOriginURL;
|
|
|
+ delete resourceElement.dataset.singleFileOriginURL;
|
|
|
if (!testIgnoredPath(resourceURL)) {
|
|
|
resourceElement.setAttribute(attributeName, EMPTY_IMAGE);
|
|
|
if (testValidPath(resourceURL)) {
|
|
|
@@ -1761,9 +1763,7 @@ this.singlefile.lib.core = this.singlefile.lib.core || (() => {
|
|
|
}
|
|
|
if (testValidURL(resourceURL)) {
|
|
|
let { content, indexResource, duplicate } = await batchRequest.addURL(resourceURL, true, resourceElement.tagName == "IMG" && attributeName == "src");
|
|
|
- if (resourceElement.dataset.singleFileOriginURL) {
|
|
|
- let originURL = resourceElement.dataset.singleFileOriginURL;
|
|
|
- delete resourceElement.dataset.singleFileOriginURL;
|
|
|
+ if (originURL) {
|
|
|
if (content == EMPTY_DATA_URI) {
|
|
|
try {
|
|
|
originURL = util.resolveURL(originURL, baseURI);
|