From 75b36a3622ae096c1d3c92b74ab6bcd74629ec58 Mon Sep 17 00:00:00 2001 From: "Jill \"oatmealine\" Monoids" Date: Thu, 21 Oct 2021 19:27:45 +0300 Subject: [PATCH] unhardcode title --- public/index.html | 1 - public/index.js | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/public/index.html b/public/index.html index 8acd8f3..3df5340 100644 --- a/public/index.html +++ b/public/index.html @@ -1,7 +1,6 @@ - deemix.oat.zone diff --git a/public/index.js b/public/index.js index 276ebdb..4d3b7fd 100644 --- a/public/index.js +++ b/public/index.js @@ -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)