re-add baseURL ruling to dashboard-v3

montage-api
Moe 2021-11-29 21:00:16 -08:00
parent 6469a7e063
commit 956728b373
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,6 @@
<% window.additionalJsScripts = []; %>
<%
if(config.baseURL)window.libURL = config.baseURL;
if(!window.libURL)window.libURL = originalURL;
%>
<!DOCTYPE html>

View File

@ -1,7 +1,10 @@
<head>
<!-- Powered by Shinobi, http://shinobi.video -->
<% include blocks/header-title.ejs %>
<% if(!window.libURL)window.libURL = originalURL + global.s.checkCorrectPathEnding(config.webPaths.home) %>
<%
if(config.baseURL)window.libURL = config.baseURL;
if(!window.libURL)window.libURL = originalURL;
%>
<% include blocks/header-meta.ejs %>
<meta http-equiv="content-type" content="text/html;charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">