mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-06 08:40:43 +00:00
lib/api: Make theme paths relative (#6142)
* Update theme.css * Update syncthingController.js
This commit is contained in:
parent
9b01e64c66
commit
d3d7408b17
@ -7,5 +7,5 @@
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@import "/theme-assets/dark/assets/css/theme.css" screen and (prefers-color-scheme: dark);
|
@import "../../theme-assets/dark/assets/css/theme.css" screen and (prefers-color-scheme: dark);
|
||||||
@import "/theme-assets/light/assets/css/theme.css" (prefers-color-scheme: light), (prefers-color-scheme: no-preference);
|
@import "../../theme-assets/light/assets/css/theme.css" (prefers-color-scheme: light), (prefers-color-scheme: no-preference);
|
||||||
|
@ -663,7 +663,7 @@ angular.module('syncthing.core')
|
|||||||
document.documentElement.style.display = 'none';
|
document.documentElement.style.display = 'none';
|
||||||
document.head.insertAdjacentHTML(
|
document.head.insertAdjacentHTML(
|
||||||
'beforeend',
|
'beforeend',
|
||||||
'<link id="fallback-theme-css" rel="stylesheet" href="/theme-assets/light/assets/css/theme.css" onload="document.documentElement.style.display = \'\'">'
|
'<link id="fallback-theme-css" rel="stylesheet" href="theme-assets/light/assets/css/theme.css" onload="document.documentElement.style.display = \'\'">'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user