@machinemetrics/mm-react-tools 4.7.1-4 → 4.7.1-5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -22961,9 +22961,9 @@ const ll = zo.createContext(), DD = () => {
|
|
|
22961
22961
|
const r = LS.parse(window.location.search);
|
|
22962
22962
|
return jd(r.mm_auth_state), $d(!0), window.location = r.mm_login_url, /* @__PURE__ */ zt(Bc, {});
|
|
22963
22963
|
};
|
|
22964
|
+
console.log("[mm-react-tools] v4.7.1-5 loaded, hostname:", window.location.hostname, "inIframe:", window !== window.top);
|
|
22964
22965
|
function UD() {
|
|
22965
|
-
|
|
22966
|
-
return console.log("[mm-react-tools] isInCrossOriginIframe:", { inIframe: r, isNonMM: e, hostname: window.location.hostname }), r ? e : !1;
|
|
22966
|
+
return window !== window.top && !window.location.hostname.endsWith("machinemetrics.com");
|
|
22967
22967
|
}
|
|
22968
22968
|
const ho = {
|
|
22969
22969
|
production: {
|
package/package.json
CHANGED