From: colemanw Date: Tue, 26 Sep 2023 19:07:23 +0000 (-0400) Subject: Remove es6 polyfill X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0ee83b3c764c7173b90859d1eeda3f60a41d5ebd;p=civicrm-core.git Remove es6 polyfill --- diff --git a/composer.json b/composer.json index 3e3eb89829..c9713841c4 100644 --- a/composer.json +++ b/composer.json @@ -202,9 +202,6 @@ "path": "bower_components/es-module-shims/dist/es-module-shims.js", "_comment": "See also https://github.com/guybedford/es-module-shims/. MIT license." }, - "es6-promise": { - "url": "https://github.com/components/es6-promise/archive/v4.2.4.zip" - }, "ext-greenwich-bootstrap3": { "url": "https://github.com/twbs/bootstrap-sass/archive/v{$version}.zip", "path": "ext/greenwich/extern/bootstrap3", diff --git a/templates/CRM/common/l10n.js.tpl b/templates/CRM/common/l10n.js.tpl index 03598223d7..427ad77d5f 100644 --- a/templates/CRM/common/l10n.js.tpl +++ b/templates/CRM/common/l10n.js.tpl @@ -125,10 +125,5 @@ functions: [] }; - // Load polyfill - if (!('Promise' in window)) { - CRM.loadScript(CRM.config.resourceBase + 'bower_components/es6-promise/es6-promise.auto.min.js'); - } - })(jQuery); {/literal}