Set dynamic base href.

This commit is contained in:
Roger Far 2021-06-05 12:08:19 -06:00
parent 5e490e8b0d
commit 97b94900fd

View file

@ -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>