diff --git a/js/main.js b/js/main.js index 73d6075f3b..f9e0e81d7a 100644 --- a/js/main.js +++ b/js/main.js @@ -735,28 +735,4 @@ const MM = (function () { }; }()); -// Add polyfill for Object.assign. -if (typeof Object.assign !== "function") { - (function () { - Object.assign = function (target) { - "use strict"; - if (target === undefined || target === null) { - throw new TypeError("Cannot convert undefined or null to object"); - } - const output = Object(target); - for (let index = 1; index < arguments.length; index++) { - const source = arguments[index]; - if (source !== undefined && source !== null) { - for (const nextKey in source) { - if (source.hasOwnProperty(nextKey)) { - output[nextKey] = source[nextKey]; - } - } - } - } - return output; - }; - }()); -} - MM.init();