diff options
author | Jonas Kohl | 2024-09-07 15:56:42 +0200 |
---|---|---|
committer | Jonas Kohl | 2024-09-07 15:56:42 +0200 |
commit | 5789e235db7eeb19be3445f28deccc37d4c477c0 (patch) | |
tree | c6476094202d290a7c2196618f684cfbba2ab6a9 /includes/desktop/template_head_start.php | |
parent | 59b1d143a39e3527e5fd2f1100fc79803c769072 (diff) |
Small JS fix
Diffstat (limited to 'includes/desktop/template_head_start.php')
-rw-r--r-- | includes/desktop/template_head_start.php | 2 |
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"; } |