unhardcode title
This commit is contained in:
parent
2a58f60f74
commit
75b36a3622
|
@ -1,7 +1,6 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>deemix.oat.zone</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
||||
<script src="https://cdn.jsdelivr.net/npm/axios@0.20.0/dist/axios.min.js"></script>
|
||||
<script src="index.js"></script>
|
||||
|
|
|
@ -1,3 +1,10 @@
|
|||
const h = window.window.location.hostname;
|
||||
if (!h || h.includes('localhost')) {
|
||||
window.document.title = 'deemix-web-frontend';
|
||||
} else {
|
||||
window.document.title = window.window.location.hostname
|
||||
}
|
||||
|
||||
function download(url) {
|
||||
console.log(url);
|
||||
fetch(url)
|
||||
|
|
Loading…
Reference in New Issue