From a6958bfe85d7ac369efd99690852f1993398564b Mon Sep 17 00:00:00 2001 From: "jeremy@jermolene.com" Date: Sun, 14 Mar 2021 10:34:41 +0000 Subject: [PATCH] Fix css-escape-polyfill.js on old iOS Fixes #5546 --- core/modules/startup/css-escape-polyfill.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/modules/startup/css-escape-polyfill.js b/core/modules/startup/css-escape-polyfill.js index 288a7336b..dfc904f89 100644 --- a/core/modules/startup/css-escape-polyfill.js +++ b/core/modules/startup/css-escape-polyfill.js @@ -19,7 +19,7 @@ exports.synchronous = true; /*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */ // https://github.com/umdjs/umd/blob/master/returnExports.js -exports.startup = factory(root); +exports.startup = function() {factory(root);}; }(typeof global != 'undefined' ? global : this, function(root) { if (root.CSS && root.CSS.escape) { @@ -109,6 +109,6 @@ exports.startup = factory(root); root.CSS = {}; } - root.CSS.escape = cssEscape; + Object.getPrototypeOf(root.CSS).escape = cssEscape; }));