OcttKB Cross-Repo Sync (HTML to Raw)

This commit is contained in:
2023-03-07 08:53:28 +00:00
parent 34ef4f08b3
commit 96d00d1b3c
889 changed files with 10 additions and 14 deletions

View File

@ -0,0 +1,17 @@
/*\
Load our custom polyfills, for old browsers support.
\*/
exports.startup = function() {
try {
// https://stackoverflow.com/a/63958411
String.prototype.replaceAllTxt = function replaceAll(search, replace) {
return this.split(search).join(replace);
};
} catch(e) {
const Str = `${e.stack.split('\n')[0]}: ${e}`
console.log(Str);
return Str;
};
};