theme: avoid server-side parsing error with --color-background
This commit is contained in:
parent
7ffe125623
commit
74198c07d7
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue