Make webpage usable via reverse proxy

location.base needs to be set to the proxied path
This commit is contained in:
RemixDev
2022-07-29 20:03:44 +02:00
parent 5fcdd07be4
commit e4bcfc9ab6
6 changed files with 13 additions and 8 deletions

View File

@@ -29,7 +29,7 @@
display: none;
}
</style>
<script>location.base = "<%= locationBase %>"</script>
<script>
if (localStorage.getItem('selectedTheme')) {
document.documentElement.setAttribute('data-theme', localStorage.getItem('selectedTheme'))