Get page URL from window.parent.location instead of window.location for iframe

This commit is contained in:
Tamius Han 2022-03-20 20:44:50 +01:00
parent 2dd901b1d5
commit 47a73cfa6c

View File

@ -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: {