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", "
") : ""; + return v1 ? chrome.i18n.getMessage(v1).replace(/") : ""; }); 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",