From fa25226c83b5678ea0de3d1dc6ab789eb12c161b Mon Sep 17 00:00:00 2001 From: Tobias Buschor Date: Fri, 16 Apr 2021 07:19:49 +0200 Subject: [PATCH] use correct fetch polyfill url --- mod.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mod.js b/mod.js index 80b9782..957bbb3 100644 --- a/mod.js +++ b/mod.js @@ -10,7 +10,7 @@ var urls = { RelativeTimeFormat: [Intl], getCanonicalLocales: [Intl], }, - 'cdn.jsdelivr.net/npm/whatwg-fetch@3.6.2/fetch.js':{ + 'cdn.jsdelivr.net/npm/whatwg-fetch@3.6.2/dist/fetch.umd.min.js':{ 'fetch':[window], //'Headers':[window], //'Request':[window], @@ -172,6 +172,9 @@ function addGetter(obj, prop, url) { Object.defineProperty(obj, prop, { configurable: true, get: function() { + + //try { throw new Error(); } catch (e) { console.log(e.stack) } + delete obj[prop]; console.log(prop+' needed > loading sync, you may want to add the polyfill '+url); loadScriptSync('https://'+url);