lib/api: Make theme paths relative (#6142)

* Update theme.css

* Update syncthingController.js
This commit is contained in:
Audrius Butkevicius 2019-11-09 12:07:46 +00:00 committed by GitHub
parent 9b01e64c66
commit d3d7408b17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -7,5 +7,5 @@
*/
@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/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);

View File

@ -663,7 +663,7 @@ angular.module('syncthing.core')
document.documentElement.style.display = 'none';
document.head.insertAdjacentHTML(
'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 = \'\'">'
);
}
}