Skip to content

Commit 4919992

Browse files
Add allowOverridingNativeContextMenus() (#17777)
1 parent 6721a71 commit 4919992

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/vector/platform/ElectronPlatform.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,11 @@ export default class ElectronPlatform extends VectorBasePlatform {
308308
return true;
309309
}
310310

311-
setNotificationCount(count: number) {
311+
public allowOverridingNativeContextMenus(): boolean {
312+
return true;
313+
}
314+
315+
public setNotificationCount(count: number): void {
312316
if (this.notificationCount === count) return;
313317
super.setNotificationCount(count);
314318

0 commit comments

Comments
 (0)