xo: Handle floating promises.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg
2020-04-25 14:44:06 -07:00
committed by Anders Kaseorg
parent 0225778050
commit bb88a7b7a8
16 changed files with 116 additions and 116 deletions

View File

@@ -117,6 +117,6 @@ ipcRenderer.on('set-idle', () => {
electron_bridge.idle_on_system = true;
});
webFrame.executeJavaScript(
(async () => webFrame.executeJavaScript(
fs.readFileSync(require.resolve('./injected'), 'utf8')
);
))();