Preserve new lines in installed theme stylesheets

Signed-off-by: Different55 <burritosaur@protonmail.com>
This commit is contained in:
Different55
2025-02-02 03:49:28 -06:00
committed by GitHub
parent da1a032c96
commit 275f8d1531

View File

@@ -122,10 +122,10 @@ export class ZenThemeMarketplaceParent extends JSWindowActorParent {
}
getStyleSheetFullContent(style = '') {
let stylesheet = '@-moz-document url-prefix("chrome:") {';
let stylesheet = '@-moz-document url-prefix("chrome:") {\n';
for (const line of style.split('\n')) {
stylesheet += ` ${line}`;
stylesheet += ` ${line}\n`;
}
stylesheet += '}';