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 /src | |
parent | 528b475429bf1ad83edc23e24dbe25e1bc2774a1 (diff) | |
download | SponsorBlock-797c9d67e4d82075d0fae0e9d63ebd0c4c982030.tar.gz SponsorBlock-797c9d67e4d82075d0fae0e9d63ebd0c4c982030.zip |
Switch back to es6
Diffstat (limited to 'src')
-rw-r--r-- | src/utils.ts | 4 |
1 files changed, 2 insertions, 2 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) { |