From 47a73cfa6c8d5fe024cdb48cae5623138b6baa2d Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Sun, 20 Mar 2022 20:44:50 +0100 Subject: [PATCH] Get page URL from window.parent.location instead of window.location for iframe --- src/csui/PlayerUiBase.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/csui/PlayerUiBase.vue b/src/csui/PlayerUiBase.vue index b7cb014..f6ca634 100644 --- a/src/csui/PlayerUiBase.vue +++ b/src/csui/PlayerUiBase.vue @@ -132,7 +132,11 @@ export default { execAction: new ExecAction(), logger: null, - site: window.location.hostname, + // we _should_ be always running from an iframe in order to + // avoid fucking up CSS. This means rules of the game change + // a wee tiny bit. + site: window.parent.location.hostname, + lastProbeTs: null, uiVisible: true, debugData: {