Change asset paths to be in current path
Signed-off-by: James Ketrenos <james_eikona@ketrenos.com>
This commit is contained in:
parent
2337a87aa3
commit
77e550917e
14
index.html
14
index.html
@ -6,13 +6,13 @@
|
|||||||
content="minimum-scale=1, initial-scale=1, width=device-width"
|
content="minimum-scale=1, initial-scale=1, width=device-width"
|
||||||
/>
|
/>
|
||||||
<script>'<base href="BASEPATH">';</script>
|
<script>'<base href="BASEPATH">';</script>
|
||||||
<link rel="icon" href="../assets/favicon-32.png" sizes="32x32">
|
<link rel="icon" href="assets/favicon-32.png" sizes="32x32">
|
||||||
<link rel="icon" href="../assets/favicon-57.png" sizes="57x57">
|
<link rel="icon" href="assets/favicon-57.png" sizes="57x57">
|
||||||
<link rel="icon" href="../assets/favicon-76.png" sizes="76x76">
|
<link rel="icon" href="assets/favicon-76.png" sizes="76x76">
|
||||||
<link rel="icon" href="../assets/favicon-96.png" sizes="96x96">
|
<link rel="icon" href="assets/favicon-96.png" sizes="96x96">
|
||||||
<link rel="icon" href="../assets/favicon-128.png" sizes="128x128">
|
<link rel="icon" href="assets/favicon-128.png" sizes="128x128">
|
||||||
<link rel="icon" href="../assets/favicon-192.png" sizes="192x192">
|
<link rel="icon" href="assets/favicon-192.png" sizes="192x192">
|
||||||
<link rel="icon" href="../assets/favicon-228.png" sizes="228x228">
|
<link rel="icon" href="assets/favicon-228.png" sizes="228x228">
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
background-image: linear-gradient(#090B1A, #131524);
|
background-image: linear-gradient(#090B1A, #131524);
|
||||||
|
@ -1,9 +1,11 @@
|
|||||||
const config = require("config");
|
const config = require("config");
|
||||||
|
|
||||||
let basePath = config.get("basePath");
|
let basePath = config.get("basePath");
|
||||||
basePath = "/" + basePath.replace(/^\/+/, "").replace(/\/+$/, "") + "/";
|
basePath = "/" + basePath.replace(/^\/+/, "").replace(/\/+$/, "") + "/";
|
||||||
if (basePath == "//") {
|
if (basePath == "//") {
|
||||||
basePath = "/";
|
basePath = "/";
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = basePath;
|
console.log(`Using basepath ${basePath}`);
|
||||||
|
|
||||||
|
module.exports = basePath;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user