diff options
author | Ajay Ramachandran <[email protected]> | 2021-07-15 14:09:10 -0400 |
---|---|---|
committer | Ajay Ramachandran <[email protected]> | 2021-07-15 14:09:10 -0400 |
commit | 797c9d67e4d82075d0fae0e9d63ebd0c4c982030 (patch) | |
tree | 651d9cb9cdb66461116cf99cbfdeb46054517964 | |
parent | 528b475429bf1ad83edc23e24dbe25e1bc2774a1 (diff) | |
download | SponsorBlock-797c9d67e4d82075d0fae0e9d63ebd0c4c982030.tar.gz SponsorBlock-797c9d67e4d82075d0fae0e9d63ebd0c4c982030.zip |
Switch back to es6
-rw-r--r-- | src/utils.ts | 4 | ||||
-rw-r--r-- | tsconfig.json | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/utils.ts b/src/utils.ts index da12b51b..f825ab34 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -270,8 +270,8 @@ export default class Utils { getLocalizedMessage(text: string): string | false { console.log(chrome.i18n.getMessage("forceChannelCheckPopup")); const valNewH = text.replace(/__MSG_(\w+)__/g, function(match, v1) { - return v1 ? chrome.i18n.getMessage(v1).replaceAll("<", "<") - .replaceAll('"', """).replaceAll("\n", "<br/>") : ""; + return v1 ? chrome.i18n.getMessage(v1).replace(/</g, "<") + .replace(/"/g, """).replace(/\n/g, "<br/>") : ""; }); if(valNewH != text) { diff --git a/tsconfig.json b/tsconfig.json index bc56e429..8fa7472c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "module": "commonjs", - "target": "es2021", + "target": "es6", "noImplicitAny": false, "sourceMap": false, "outDir": "dist/js", |