Explorar o código

fixed issue when a URL is pointing to a hash of the (SVG) document

Gildas %!s(int64=7) %!d(string=hai) anos
pai
achega
dc1907f095
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/single-file/single-file-core.js

+ 1 - 1
lib/single-file/single-file-core.js

@@ -1211,7 +1211,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
 				const originalResourceURL = Util.matchURL(urlFunction);
 				const resourceURL = Util.normalizeURL(originalResourceURL);
 				if (!Util.testIgnoredPath(resourceURL)) {
-					if (Util.testValidPath(resourceURL, baseURI, options.url)) {
+					if (!resourceURL || Util.testValidPath(resourceURL, baseURI, options.url)) {
 						let resolvedURL;
 						try {
 							resolvedURL = DocUtil.resolveURL(resourceURL, baseURI);