unhardcode title

This commit is contained in:
Jill 2021-10-21 19:27:45 +03:00
parent 2a58f60f74
commit 75b36a3622
2 changed files with 7 additions and 1 deletions

View File

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

View File

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