1
0
Fork 0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-07-04 20:46:39 +02:00

Add {newline} to parseTranslation

This commit is contained in:
kkapsner 2024-12-22 00:25:00 +01:00
parent d9af05599c
commit c776ce9e04
3 changed files with 6 additions and 5 deletions

View file

@ -20,10 +20,7 @@
const description = document.createElement("div");
description.className = "description";
extension.getTranslation("whitelist_inspection_description").split(/(\n)/g).forEach(function(line){
const node = line === "\n"? document.createElement("br"): document.createTextNode(line);
description.appendChild(node);
});
description.appendChild(extension.parseTranslation(extension.getTranslation("whitelist_inspection_description")));
document.body.appendChild(description);