1
0
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:
Jonas Kuske
2019-06-09 15:27:36 +02:00
parent e7cddd06fc
commit 78221f471c
7 changed files with 25 additions and 25 deletions

View File

@@ -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' },
},
])