chore(eslint): use moeru config (#664)
This commit is contained in:
@@ -32,9 +32,9 @@ export function themeColorFromValue(value: string | { light: string, dark: strin
|
||||
|
||||
export function useThemeColor(colorFrom: () => string | Promise<string>) {
|
||||
async function updateThemeColor() {
|
||||
if (!('document' in globalThis && globalThis.document != null))
|
||||
if (!('document' in globalThis) || globalThis.document == null)
|
||||
return
|
||||
if (!('window' in globalThis && globalThis.window != null))
|
||||
if (!('window' in globalThis) || globalThis.window == null)
|
||||
return
|
||||
|
||||
document.querySelector('meta[name="theme-color"]')?.setAttribute('content', new Color(await colorFrom()).to('srgb').toString({ format: 'hex' }))
|
||||
|
||||
Reference in New Issue
Block a user