From f875600ee4669a9a80b3233ab8d6522013219ba1 Mon Sep 17 00:00:00 2001 From: ludeeus Date: Sun, 9 Feb 2020 10:34:26 +0000 Subject: [PATCH] Fixes #72 --- src/HacsFrontend.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/HacsFrontend.ts b/src/HacsFrontend.ts index de162c00..30aaf564 100644 --- a/src/HacsFrontend.ts +++ b/src/HacsFrontend.ts @@ -121,7 +121,9 @@ class HacsFrontendBase extends LitElement { protected async firstUpdated() { window.onpopstate = function() { - window.location.reload(); + if (window.location.pathname.includes("hacs")) { + window.location.reload(); + } }; const [ repositories,