Browse Source

improved fallback procedure

Former-commit-id: 90807fc649112c0c9f6b2edf5dfd8fe44bd0fed5
Gildas 6 years ago
parent
commit
2a7bffea91
1 changed files with 5 additions and 1 deletions
  1. 5 1
      lib/single-file/single-file-util.js

+ 5 - 1
lib/single-file/single-file-util.js

@@ -215,7 +215,11 @@ this.singlefile.lib.util = this.singlefile.lib.util || (() => {
 				}
 				try {
 					if (options.frameId) {
-						response = await fetchFrameResource(resourceURL, options.frameId);
+						try {
+							response = await fetchFrameResource(resourceURL, options.frameId);
+						} catch (error) {
+							response = await fetchResource(resourceURL);
+						}
 					} else {
 						response = await fetchResource(resourceURL);
 					}