mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 13:23:20 -07:00
!wip spacing
This commit is contained in:
parent
e77d54c6d1
commit
eceab97b65
1 changed files with 6 additions and 7 deletions
|
@ -8,11 +8,10 @@
|
||||||
const existingBaseUrl = window.localStorage.getItem("baseUrl");
|
const existingBaseUrl = window.localStorage.getItem("baseUrl");
|
||||||
if (existingBaseUrl === null || existingBaseUrl || existingBaseUrl.length === 0) {
|
if (existingBaseUrl === null || existingBaseUrl || existingBaseUrl.length === 0) {
|
||||||
document.write('<base href="/' + existingBaseUrl + '" />');
|
document.write('<base href="/' + existingBaseUrl + '" />');
|
||||||
if(existingBaseUrl.length === 0)
|
if (existingBaseUrl.length === 0) {
|
||||||
{
|
document.write("<link rel=\"stylesheet\" href='/loading.css'/>")
|
||||||
document.write(" <link rel=\"stylesheet\" href='/loading.css'/>")
|
|
||||||
} else {
|
} else {
|
||||||
document.write(" <link rel=\"stylesheet\" href='" + existingBaseUrl + "/loading.css'/>")
|
document.write("<link rel=\"stylesheet\" href='" + existingBaseUrl + "/loading.css'/>")
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Work out the base URL
|
// Work out the base URL
|
||||||
|
@ -33,7 +32,7 @@
|
||||||
hasFile = true;
|
hasFile = true;
|
||||||
debugger;
|
debugger;
|
||||||
document.write('<base href="/' + data + '" />');
|
document.write('<base href="/' + data + '" />');
|
||||||
document.write(" <link rel=\"stylesheet\" href=" + data + "/loading.css\"/>")
|
document.write("<link rel=\"stylesheet\" href=" + data + "/loading.css\"/>")
|
||||||
window.localStorage.setItem("baseUrl", data);
|
window.localStorage.setItem("baseUrl", data);
|
||||||
|
|
||||||
function tryGetBaseUrl(xmlhttp, url) {
|
function tryGetBaseUrl(xmlhttp, url) {
|
||||||
|
@ -47,8 +46,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function endsWith(str, suffix) {
|
function endsWith(str, suffix) {
|
||||||
return str.indexOf(suffix, str.length - suffix.length) !== -1;
|
return str.indexOf(suffix, str.length - suffix.length) !== -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue