mirror of
https://github.com/Lissy93/dashy.git
synced 2024-11-28 05:14:08 +03:00
🐛 Adds text/css type attr for custom stylesheets (#560)
This commit is contained in:
parent
0e101b6330
commit
f286487b75
@ -32,6 +32,7 @@ export const LoadExternalTheme = function th() {
|
|||||||
const preloadTheme = (href) => {
|
const preloadTheme = (href) => {
|
||||||
const link = document.createElement('link');
|
const link = document.createElement('link');
|
||||||
link.rel = 'stylesheet';
|
link.rel = 'stylesheet';
|
||||||
|
link.type = 'text/css'
|
||||||
link.href = href;
|
link.href = href;
|
||||||
document.head.appendChild(link);
|
document.head.appendChild(link);
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user