From ba7f924b02ddc16fe3c701b35eadce6a9287b378 Mon Sep 17 00:00:00 2001 From: Eric Date: Tue, 23 Jun 2020 11:18:33 -0500 Subject: [PATCH] Remove another few unneeded polyfills --- app/javascript/legacy/common/polyfills.js | 11 ----------- app/javascript/legacy/page.js | 1 - 2 files changed, 12 deletions(-) delete mode 100644 app/javascript/legacy/common/polyfills.js diff --git a/app/javascript/legacy/common/polyfills.js b/app/javascript/legacy/common/polyfills.js deleted file mode 100644 index 9504f84e..00000000 --- a/app/javascript/legacy/common/polyfills.js +++ /dev/null @@ -1,11 +0,0 @@ -// License: LGPL-3.0-or-later -// Console fallback -if (!window.console) { - window.console = new function() { - this.log = function(str) {} - this.dir = function(str) {} - } -} - -// Promises polyfill -require('es6-promise').polyfill() diff --git a/app/javascript/legacy/page.js b/app/javascript/legacy/page.js index 080ee951..96cb9031 100644 --- a/app/javascript/legacy/page.js +++ b/app/javascript/legacy/page.js @@ -5,7 +5,6 @@ window.appl = require('./common/application_view') // XXX remove window.$ = require('jquery') // XXX remove window.jQuery = window.$ // XXX remove -require('./common/polyfills') require('./common/vendor/jquery.cookie') // XXX remove require('parsleyjs') // XXX remove require('./common/jquery_additions') // XXX remove