mirror of
https://github.com/kognise/water.css.git
synced 2025-12-08 15:54:59 +01:00
Fix demo page
This commit is contained in:
parent
3aedaf2b43
commit
d38866b357
4 changed files with 19 additions and 18 deletions
|
|
@ -4,15 +4,15 @@
|
|||
iconModeSwitcher([
|
||||
{
|
||||
element: 'link[rel="shortcut icon"]',
|
||||
href: { dark: '/icons/light-favicon.ico' }
|
||||
href: { dark: 'icons/light-favicon.ico' }
|
||||
},
|
||||
{
|
||||
element: 'link[rel="icon"][sizes="16x16"]',
|
||||
href: { dark: '/icons/light-favicon-16x16.png' }
|
||||
href: { dark: 'icons/light-favicon-16x16.png' }
|
||||
},
|
||||
{
|
||||
element: 'link[rel="icon"][sizes="32x32"]',
|
||||
href: { dark: '/icons/light-favicon-32x32.png' }
|
||||
href: { dark: 'icons/light-favicon-32x32.png' }
|
||||
}
|
||||
])
|
||||
})()
|
||||
|
|
@ -77,7 +77,7 @@
|
|||
const lightSchemeMql = matchMedia('(prefers-color-scheme: light)');
|
||||
const that = this;
|
||||
|
||||
this.themeDir = '../dist/';
|
||||
this.themeDir = 'dist/';
|
||||
this.stylesheet = document.getElementById(stylesheet);
|
||||
this.current = this.getThemeName(this.stylesheet.href);
|
||||
this.isDark = darkSchemeMql.matches;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue