mirror of
https://github.com/kognise/water.css.git
synced 2025-08-14 00:54:08 +02:00
feat: use ESM version of favicon-mode-switcher
This commit is contained in:
@@ -186,20 +186,3 @@ new w.Vue({
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
const iconModeSwitcher = w.faviconModeSwitcher.default
|
||||
/* Use bright favicons when the browser is in dark mode. */
|
||||
iconModeSwitcher([
|
||||
{
|
||||
element: 'link[rel="shortcut icon"]',
|
||||
href: { dark: './icons/light-favicon.ico' },
|
||||
},
|
||||
{
|
||||
element: 'link[rel="icon"][sizes="16x16"]',
|
||||
href: { dark: './icons/light-favicon-16x16.png' },
|
||||
},
|
||||
{
|
||||
element: 'link[rel="icon"][sizes="32x32"]',
|
||||
href: { dark: './icons/light-favicon-32x32.png' },
|
||||
},
|
||||
])
|
||||
|
Reference in New Issue
Block a user