From f6e5b06dc02ddafceb41ed0f79684ac0514745f6 Mon Sep 17 00:00:00 2001 From: "h.u.g.u.rp" Date: Tue, 10 Oct 2023 18:00:33 +0200 Subject: [PATCH] fix origin link on home --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index e3cc2e5..6d00de6 100644 --- a/index.js +++ b/index.js @@ -105,7 +105,7 @@ export default class R4Radio extends HTMLElement { const $titleText = document.createElement("h1"); const $titleLink = document.createElement("a"); - $titleLink.setAttribute("href", this.origin); + $titleLink.setAttribute("href", this.location.origin); $titleLink.innerText = `.${this.hostname}`; $titleText.append($titleLink);