mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-07 20:17:05 +03:00
Switch back to es6
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user