Kaynağa Gözat

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

Gildas 7 yıl önce
ebeveyn
işleme
dc1907f095
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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);