summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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";
}