|
@@ -18,7 +18,7 @@
|
|
|
* along with SingleFile. If not, see <http://www.gnu.org/licenses/>.
|
|
* along with SingleFile. If not, see <http://www.gnu.org/licenses/>.
|
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
-/* global SingleFileCore, base64, DOMParser, getComputedStyle, TextDecoder, window, fetch, parseSrcset, uglifycss */
|
|
|
|
|
|
|
+/* global SingleFileCore, base64, DOMParser, getComputedStyle, TextDecoder, fetch, parseSrcset, uglifycss */
|
|
|
|
|
|
|
|
this.SingleFile = (() => {
|
|
this.SingleFile = (() => {
|
|
|
|
|
|
|
@@ -37,7 +37,7 @@ this.SingleFile = (() => {
|
|
|
};
|
|
};
|
|
|
let resourceContent;
|
|
let resourceContent;
|
|
|
try {
|
|
try {
|
|
|
- resourceContent = await (window.superFetch || fetch)(resourceURL, requestOptions);
|
|
|
|
|
|
|
+ resourceContent = await (this.superFetch || fetch)(resourceURL, requestOptions);
|
|
|
} catch (e) {
|
|
} catch (e) {
|
|
|
return asDataURI ? "data:base64," : "";
|
|
return asDataURI ? "data:base64," : "";
|
|
|
}
|
|
}
|