From 5789e235db7eeb19be3445f28deccc37d4c477c0 Mon Sep 17 00:00:00 2001 From: Jonas Kohl Date: Sat, 7 Sep 2024 15:56:42 +0200 Subject: Small JS fix --- includes/desktop/template_head_start.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/desktop/template_head_start.php') diff --git a/includes/desktop/template_head_start.php b/includes/desktop/template_head_start.php index c931202..04fea05 100644 --- a/includes/desktop/template_head_start.php +++ b/includes/desktop/template_head_start.php @@ -13,7 +13,7 @@ if (window.top == window.self) { location = getLocation(); - } else if ("history" in window.top && "replaceState" in window.top.history) { + } else if (window.top && typeof window.top.history !== "undefined" && typeof window.top.history.replaceState === "function") { window.top.history.replaceState(null, "", getLocation()); window.top.document.title = document.title + " \u2012 Mystic House Corner"; } -- cgit v1.2.3