diff --git a/apps/common/main/lib/util/fix-ie-compat.js b/apps/common/main/lib/util/fix-ie-compat.js index e56227d2f..8ce3bf8ca 100644 --- a/apps/common/main/lib/util/fix-ie-compat.js +++ b/apps/common/main/lib/util/fix-ie-compat.js @@ -31,4 +31,10 @@ if ( !window.fetch ) { return target; }; } + + if (typeof Object.getOwnPropertySymbols != 'function') { + Object.getOwnPropertySymbols = function(target) { + return []; + }; + } } diff --git a/apps/common/main/lib/util/htmlutils.js b/apps/common/main/lib/util/htmlutils.js index 16d22ded3..77392abde 100644 --- a/apps/common/main/lib/util/htmlutils.js +++ b/apps/common/main/lib/util/htmlutils.js @@ -108,7 +108,4 @@ if ( checkLocalStorage ) { document.body.classList.add("content-theme-dark"); } } -} - -// IE 10/11 polyfill -!Object.getOwnPropertySymbols && (Object.getOwnPropertySymbols = function (){return[]}); \ No newline at end of file +} \ No newline at end of file