فهرست منبع

added support of #! links

Former-commit-id: 9bbb25a0c42e29c732f579777d7e76edc937c092
Gildas 6 سال پیش
والد
کامیت
513a4df476
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      lib/single-file/single-file-core.js

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

@@ -125,7 +125,7 @@ this.singlefile.lib.core = this.singlefile.lib.core || (() => {
 		]
 	}, {
 		sequential: [
-			{ option: "removeAlternativeImages", action: "removeAlternativeImages" }			
+			{ option: "removeAlternativeImages", action: "removeAlternativeImages" }
 		],
 		parallel: [
 			{ option: "removeAlternativeFonts", action: "removeAlternativeFonts" },
@@ -805,7 +805,7 @@ this.singlefile.lib.core = this.singlefile.lib.core || (() => {
 					}
 					if (resolvedURL) {
 						const url = Util.normalizeURL(this.options.url);
-						if (resolvedURL.startsWith(url + "#") && !this.options.resolveFragmentIdentifierURLs) {
+						if (resolvedURL.startsWith(url + "#") && !resolvedURL.startsWith(url + "#!") && !this.options.resolveFragmentIdentifierURLs) {
 							resolvedURL = resolvedURL.substring(url.length);
 						}
 						try {