Skip to content

Commit

Permalink
fix: theme CSS not loading with non-trivial rootPath
Browse files Browse the repository at this point in the history
  • Loading branch information
iisakkirotko committed Mar 14, 2024
1 parent 02f94fd commit 829946c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solara/server/templates/solara.html.j2
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@
location.reload();
},
async changeThemeCSS(theme) {
let css = await fetch(`/static/assets/theme-${theme}.css`).then(r => r.text());
let css = await fetch(`${solara.rootPath}/static/assets/theme-${theme}.css`).then(r => r.text());
document.getElementById('jupyter-theme-css').innerHTML = css;
}
},
Expand Down

0 comments on commit 829946c

Please sign in to comment.