fix app.js with url_prefix

This commit is contained in:
reynoldsnlp 2022-12-31 15:15:51 -07:00
parent c5cc233aaf
commit 14b4f28a1a
3 changed files with 6 additions and 3 deletions

View file

@ -1,7 +1,6 @@
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-3.0
// API host/endpoint
//var BaseUrl = window.location.protocol + "//" + window.location.host + window.location.pathname.length > 1 ? window.location.pathname : "" ;
var BaseUrl = window.location.href.slice(0, -1)
var BaseUrl = window.location.protocol + "//" + window.location.host + url_prefix ;
var htmlRegex = /<(.*)>.*?|<(.*)\/>/;
document.addEventListener('DOMContentLoaded', function(){
var sidenavElems = document.querySelectorAll('.sidenav');