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:
parent
d9af05599c
commit
c776ce9e04
3 changed files with 6 additions and 5 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue