Update settings.service.ts
This commit is contained in:
parent
527a6edf1a
commit
492dece30c
@ -112,19 +112,11 @@ export class SettingsService {
|
|||||||
'auto'
|
'auto'
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
if (!darkModeEnabled) {
|
this._renderer.setAttribute(
|
||||||
this._renderer.setAttribute(
|
this.document.documentElement,
|
||||||
this.document.documentElement,
|
'data-bs-theme',
|
||||||
'data-bs-theme',
|
darkModeEnabled ? 'dark' : 'light'
|
||||||
'light'
|
)
|
||||||
)
|
|
||||||
} else {
|
|
||||||
this._renderer.setAttribute(
|
|
||||||
this.document.documentElement,
|
|
||||||
'data-bs-theme',
|
|
||||||
'dark'
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (themeColor) {
|
if (themeColor) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user