single-file-core 1.3.31 → 1.3.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/core/index.js CHANGED
@@ -177,7 +177,7 @@ class Runner {
177
177
  const rootDocDefined = root && options.doc;
178
178
  this.root = root;
179
179
  this.options = options;
180
- this.options.url = this.options.url || (rootDocDefined && this.options.doc.location.href);
180
+ this.options.url = this.options.url || (rootDocDefined && this.options.doc.documentURI);
181
181
  const matchResourceReferrer = this.options.url.match(/^.*\//);
182
182
  this.options.resourceReferrer = this.options.passReferrerOnError && matchResourceReferrer && matchResourceReferrer[0];
183
183
  this.options.baseURI = rootDocDefined && this.options.doc.baseURI;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "single-file-core",
3
- "version": "1.3.31",
3
+ "version": "1.3.32",
4
4
  "description": "SingleFile Core",
5
5
  "author": "Gildas Lormeau",
6
6
  "license": "AGPL-3.0-or-later",
@@ -403,7 +403,7 @@ function getFrameData(document, globalThis, windowId, options, scrolling) {
403
403
  windowId,
404
404
  content,
405
405
  baseURI,
406
- url: document.location.href,
406
+ url: document.documentURI,
407
407
  title: document.title,
408
408
  canvases: docData.canvases,
409
409
  fonts: docData.fonts,