Skip to content

Commit a349ef6

Browse files
authored
Themes: Fixes system theme asset paths (grafana#80019)
1 parent 89a3337 commit a349ef6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

public/views/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@
243243
user: [[.User]],
244244
settings: [[.Settings]],
245245
navTree: [[.NavTree]],
246-
assets: [[.Assets]]
246+
assets: [[.Assets]]
247247
};
248248

249249
// Set theme to match system only on startup.
@@ -256,11 +256,11 @@
256256

257257
if (darkQuery.matches) {
258258
document.body.classList.add("theme-dark");
259-
cssLink.href = window.grafanaBootData.themePaths.dark;
259+
cssLink.href = window.grafanaBootData.assets.dark;
260260
window.grafanaBootData.user.lightTheme = false;
261261
} else {
262262
document.body.classList.add("theme-light");
263-
cssLink.href = window.grafanaBootData.themePaths.light;
263+
cssLink.href = window.grafanaBootData.assets.light;
264264
window.grafanaBootData.user.lightTheme = true;
265265
}
266266
document.head.appendChild(cssLink);

0 commit comments

Comments
 (0)