From 8101276b519a49962d11f79ba0afc436ea63bb15 Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 7 Sep 2021 19:27:28 +0530 Subject: [PATCH] finally stop polyfilling promises in 2021 --- bower.json | 3 +-- www/common/media-tag.js | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/bower.json b/bower.json index 0f8337867..81acde661 100644 --- a/bower.json +++ b/bower.json @@ -49,8 +49,7 @@ "jszip": "Stuk/jszip#^3.1.5", "requirejs-plugins": "^1.0.3", "dragula.js": "3.7.2", - "MathJax": "3.0.5", - "es6-promise ": "4.2.4" + "MathJax": "3.0.5" }, "resolutions": { "bootstrap": "^v4.0.0", diff --git a/www/common/media-tag.js b/www/common/media-tag.js index 6b5735294..a99a74f8f 100644 --- a/www/common/media-tag.js +++ b/www/common/media-tag.js @@ -794,9 +794,7 @@ var factory = function () { if (typeof(module) !== 'undefined' && module.exports) { module.exports = factory(); } else if ((typeof(define) !== 'undefined' && define !== null) && (define.amd !== null)) { - define([ - '/bower_components/es6-promise/es6-promise.min.js' - ], function () { + define([], function () { return factory(); }); } else {