Skip to content

Commit

Permalink
fix double redirect in ksuite iframe
Browse files Browse the repository at this point in the history
Changelog: fixed
  • Loading branch information
antonbuks committed Oct 24, 2024
1 parent e1d5df6 commit b0bd3c9
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ export function loadMe(): ActionFuncAsync<boolean> {
const serverVersion = Client4.getServerVersion();
dispatch(setServerVersion(serverVersion));

if (!isDesktopApp() && Client4.isIkBaseUrl() && process.env.NODE_ENV !== 'test' && process.env.NODE_ENV !== 'development') { //eslint-disable-line no-process-env
// @ts-expect-error todo fix type
const bridge = getState().ksuite_bridge.bridge;

if (!bridge.isConnected && !isDesktopApp() && Client4.isIkBaseUrl() && process.env.NODE_ENV !== 'test' && process.env.NODE_ENV !== 'development') { //eslint-disable-line no-process-env
// eslint-disable-next-line no-process-env
window.location.assign(`https://ksuite.${process.env.BASE_URL?.split('kchat.')[1]}`);

Expand Down

0 comments on commit b0bd3c9

Please sign in to comment.