theme: avoid server-side parsing error with --color-background

This commit is contained in:
jean-emmanuel 2022-10-22 21:31:09 +02:00
parent 7ffe125623
commit 74198c07d7

View file

@ -77,7 +77,7 @@ class Theme {
var css = this.get()
if (css.includes('--color-background:')) {
this.backgroundColor = css.match(/--color-background:([^;]*);/)[1].trim()
this.backgroundColor = css.match(/--color-background:([^;\n]*)/)[1].trim()
} else {
this.backgroundColor = this.defaultColor
}