change the information

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2021-03-12 12:49:41 -05:00
1 parent f099489244
commit ed2e973635
1 file changed
+3 -4
+3 -4
View File
@@ -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 });
});