From 895749707fedc9d8881d6cf29c44bfb022b449fa Mon Sep 17 00:00:00 2001 From: mike-000 <49240900+mike-000@users.noreply.github.com> Date: Wed, 13 Oct 2021 10:23:09 +0100 Subject: [PATCH] Use core-js cdn for some polyfills --- examples/resources/Promise.allSettled.js | 21 --------------------- examples/templates/example.html | 9 +++++---- site/index.html | 7 ++++--- 3 files changed, 9 insertions(+), 28 deletions(-) delete mode 100644 examples/resources/Promise.allSettled.js diff --git a/examples/resources/Promise.allSettled.js b/examples/resources/Promise.allSettled.js deleted file mode 100644 index e8822b2db4..0000000000 --- a/examples/resources/Promise.allSettled.js +++ /dev/null @@ -1,21 +0,0 @@ -if (typeof Promise !== 'undefined' && !Promise.allSettled && Array.from) { - Promise.allSettled = - function (promises) { - return Promise.all( - Array.from( - promises, - function (p) { - return p.then ( - function (value) { - return {status: 'fulfilled', value: value}; - } - ).catch( - function (reason) { - return {status: 'rejected', reason: reason}; - } - ); - } - ) - ) - }; -} diff --git a/examples/templates/example.html b/examples/templates/example.html index e60def9d5e..fdead5dd47 100644 --- a/examples/templates/example.html +++ b/examples/templates/example.html @@ -68,8 +68,8 @@ - - + + {{{ extraHead.local }}} {{{ css.tag }}}