Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 5844958

Browse files
committed
Revert "Use window.navigator"
This reverts commit 2277ec4. Signed-off-by: Aaron Raimist <aaron@raim.ist>
1 parent 330deff commit 5844958

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/structures/MatrixChat.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1387,7 +1387,7 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
13871387

13881388
StorageManager.tryPersistStorage();
13891389

1390-
window.navigator.registerProtocolHandler("matrix", "/#/%s");
1390+
navigator.registerProtocolHandler("matrix", "/#/%s");
13911391

13921392
if (PosthogAnalytics.instance.isEnabled() && SettingsStore.isLevelSupported(SettingLevel.ACCOUNT)) {
13931393
this.initPosthogAnalyticsToast();

0 commit comments

Comments
 (0)