Set dynamic base href.
This commit is contained in:
parent
5e490e8b0d
commit
97b94900fd
1 changed files with 6 additions and 0 deletions
|
|
@ -4,6 +4,12 @@
|
|||
<meta charset="utf-8" />
|
||||
<title>Real-Debrid Torrent Client</title>
|
||||
<base href="/" />
|
||||
<script>
|
||||
(function () {
|
||||
window["_app_base"] = "/" + window.location.pathname.split("/")[1];
|
||||
console.log('setting base href to ' + window["_app_base"])
|
||||
})();
|
||||
</script>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<link rel="icon" type="image/x-icon" href="favicon.ico" />
|
||||
</head>
|
||||
|
|
|
|||
Loading…
Reference in a new issue