From ed2e9736353996eddd22161ffbaf333e815451d4 Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Fri, 12 Mar 2021 12:49:41 -0500 Subject: [PATCH] change the information Signed-off-by: Sebastian Malton --- src/renderer/navigation/history.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/renderer/navigation/history.ts b/src/renderer/navigation/history.ts index cfa11cb2f6..f12b89f365 100644 --- a/src/renderer/navigation/history.ts +++ b/src/renderer/navigation/history.ts @@ -1,15 +1,14 @@ import { ipcRenderer } from "electron"; import { createBrowserHistory, createMemoryHistory } from "history"; import { createObservableHistory } from "mobx-observable-history"; -import { getHostedClusterId } from "../../common/cluster-store"; import logger from "../../main/logger"; export const history = ipcRenderer ? createBrowserHistory() : createMemoryHistory(); export const navigation = createObservableHistory(history); navigation.listen((location, action) => { - const clusterId = getHostedClusterId(); - const frame = clusterId ?? "root"; + const isClusterView = !process.isMainFrame; + const domain = global.location.href; - logger.debug(`[NAVIGATION]: ${action}`, { location, frame }); + logger.debug(`[NAVIGATION]: ${action}`, { isClusterView, domain, location }); });