File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " svelte-flatpickr-plus" ,
3
- "version" : " 2.0.0 " ,
3
+ "version" : " 2.0.1 " ,
4
4
"description" : " Flatpickr is a lightweight and powerful datetime picker. Svelte Flatpickr Plus is a wrapper for Flatpickr with some extra features." ,
5
5
"homepage" : " https://github.com/kodaicoder/svelte-flatpickr-plus" ,
6
6
"bugs" : {
Original file line number Diff line number Diff line change @@ -40,11 +40,11 @@ export async function themeChanger(themeName) {
40
40
}
41
41
42
42
// Construct the potential theme path
43
- const themePath = `/node_modules/flatpickr_plus /dist/themes/` ;
43
+ const themePath = `https://npmcdn.com/flatpickr /dist/themes/` ;
44
44
45
45
tc ( themeName , themePath ) ;
46
46
}
47
47
export function currentTheme ( ) {
48
- const themePath = `/node_modules/flatpickr_plus /dist/themes/` ;
48
+ const themePath = `https://npmcdn.com/flatpickr /dist/themes/` ;
49
49
return getCurrentThemeName ( themePath ) ;
50
50
}
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ export default async function themeChanger(
18
18
links . forEach ( ( link ) => link . remove ( ) ) ;
19
19
}
20
20
linkElement . rel = "stylesheet" ;
21
+ linkElement . type = "text/css" ;
21
22
linkElement . href = pathToThemeFolder + name + ".css" ;
22
23
document . head . appendChild ( linkElement ) ;
23
24
}
You can’t perform that action at this time.
0 commit comments