1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-16 10:29:54 +00:00

Fix css-escape-polyfill.js on old iOS

Fixes #5546
This commit is contained in:
jeremy@jermolene.com 2021-03-14 10:34:41 +00:00
parent 7b1a0c6e6a
commit a6958bfe85

View File

@ -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;
}));