|
|
@@ -225,7 +225,12 @@ this.singlefile.lib.util = this.singlefile.lib.util || (() => {
|
|
|
} catch (error) {
|
|
|
return { data: options.asBinary ? "data:null;base64," : "", resourceURL };
|
|
|
}
|
|
|
- const buffer = await response.arrayBuffer();
|
|
|
+ let buffer;
|
|
|
+ try {
|
|
|
+ buffer = await response.arrayBuffer();
|
|
|
+ } catch (error) {
|
|
|
+ return { data: options.asBinary ? "data:null;base64," : "", resourceURL };
|
|
|
+ }
|
|
|
resourceURL = response.url || resourceURL;
|
|
|
let contentType = response.headers.get("content-type");
|
|
|
let charset;
|