mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-01-27 06:50:48 -08:00
fix: Cannot read properties of null
This commit is contained in:
parent
ef251e575b
commit
46cea46425
1 changed files with 1 additions and 3 deletions
|
|
@ -57,9 +57,7 @@ export class Wiki implements IWikiService {
|
|||
|
||||
public async requestWikiSendActionMessage(actionMessage: string): Promise<void> {
|
||||
const browserView = await this.viewService.getActiveBrowserView();
|
||||
if (browserView !== undefined) {
|
||||
browserView.webContents.send(WikiChannel.sendActionMessage, actionMessage);
|
||||
}
|
||||
browserView?.webContents?.send?.(WikiChannel.sendActionMessage, actionMessage);
|
||||
}
|
||||
|
||||
// handlers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue