summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorJonas Kohl <git@jonaskohl.de>2024-09-07 15:56:42 +0200
committerJonas Kohl <git@jonaskohl.de>2024-09-07 15:56:42 +0200
commit5789e235db7eeb19be3445f28deccc37d4c477c0 (patch)
treec6476094202d290a7c2196618f684cfbba2ab6a9 /includes
parent59b1d143a39e3527e5fd2f1100fc79803c769072 (diff)
Small JS fix
Diffstat (limited to 'includes')
-rw-r--r--includes/desktop/template_head_start.php2
1 files changed, 1 insertions, 1 deletions
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";
}