Switch back to es6

This commit is contained in:
Ajay Ramachandran
2021-07-15 14:09:10 -04:00
parent 528b475429
commit 797c9d67e4
2 changed files with 3 additions and 3 deletions

View File

@@ -270,8 +270,8 @@ export default class Utils {
getLocalizedMessage(text: string): string | false { getLocalizedMessage(text: string): string | false {
console.log(chrome.i18n.getMessage("forceChannelCheckPopup")); console.log(chrome.i18n.getMessage("forceChannelCheckPopup"));
const valNewH = text.replace(/__MSG_(\w+)__/g, function(match, v1) { const valNewH = text.replace(/__MSG_(\w+)__/g, function(match, v1) {
return v1 ? chrome.i18n.getMessage(v1).replaceAll("<", "&#60;") return v1 ? chrome.i18n.getMessage(v1).replace(/</g, "&#60;")
.replaceAll('"', "&quot;").replaceAll("\n", "<br/>") : ""; .replace(/"/g, "&quot;").replace(/\n/g, "<br/>") : "";
}); });
if(valNewH != text) { if(valNewH != text) {

View File

@@ -1,7 +1,7 @@
{ {
"compilerOptions": { "compilerOptions": {
"module": "commonjs", "module": "commonjs",
"target": "es2021", "target": "es6",
"noImplicitAny": false, "noImplicitAny": false,
"sourceMap": false, "sourceMap": false,
"outDir": "dist/js", "outDir": "dist/js",