Skip to content

Commit

Permalink
MM-49079 - Fix desktop links (#340)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpoile committed Feb 17, 2023
1 parent 32749df commit 3884a9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webapp/src/components/expanded_view/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ export default class ExpandedView extends React.PureComponent<Props, State> {
callsClient?.on('close', () => window.close());

// don't allow navigation in expanded window e.g. permalinks in rhs
this.#unlockNavigation = props.history.block(() => {
this.#unlockNavigation = props.history.block((tx) => {
sendDesktopEvent('calls-link-click', {link: tx.pathname});
return false;
});
} else if (window.desktop) {
Expand Down

0 comments on commit 3884a9f

Please sign in to comment.