aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorAjay Ramachandran <[email protected]>2021-07-15 14:09:10 -0400
committerAjay Ramachandran <[email protected]>2021-07-15 14:09:10 -0400
commit797c9d67e4d82075d0fae0e9d63ebd0c4c982030 (patch)
tree651d9cb9cdb66461116cf99cbfdeb46054517964 /src
parent528b475429bf1ad83edc23e24dbe25e1bc2774a1 (diff)
downloadSponsorBlock-797c9d67e4d82075d0fae0e9d63ebd0c4c982030.tar.gz
SponsorBlock-797c9d67e4d82075d0fae0e9d63ebd0c4c982030.zip
Switch back to es6
Diffstat (limited to 'src')
-rw-r--r--src/utils.ts4
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("<", "&#60;")
- .replaceAll('"', "&quot;").replaceAll("\n", "<br/>") : "";
+ return v1 ? chrome.i18n.getMessage(v1).replace(/</g, "&#60;")
+ .replace(/"/g, "&quot;").replace(/\n/g, "<br/>") : "";
});
if(valNewH != text) {