mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2025-06-11 00:49:39 +00:00
fix app.js with url_prefix
This commit is contained in:
parent
c5cc233aaf
commit
14b4f28a1a
3 changed files with 6 additions and 3 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue