File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ androidMessagesWebview.addEventListener('did-finish-load', () => { // just befor
4141
4242} ) ;
4343
44- androidMessagesWebview . addEventListener ( 'did-stop-loading' , async ( ) => { // coincident with onLoad, can fire multiple times
44+ androidMessagesWebview . addEventListener ( 'did-stop-loading' , ( ) => { // coincident with onLoad, can fire multiple times
4545 console . log ( 'done loading' ) ;
4646 if ( ! state . loaded ) {
4747 state . loaded = true ;
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import { webFrame } from 'electron';
1414// Electron (or the build of Chromium it uses?) does not seem to have any default right-click menu, this adds our own.
1515remote . getCurrentWebContents ( ) . addListener ( 'context-menu' , popupContextMenu ) ;
1616
17- window . onload = async ( ) => {
17+ window . onload = ( ) => {
1818 // Let the main process know the page is (essentially) done loading.
1919 // This should defer spellchecker downloading in a way that avoids blocking the page UI :D
2020 ipcRenderer . send ( EVENT_BRIDGE_INIT ) ;
Original file line number Diff line number Diff line change 44const { ipcRenderer, remote } = require ( 'electron' ) ;
55const { EVENT_SPELL_ADD_CUSTOM_WORD } = require ( '../../constants' ) ;
66
7- const Menu = remote . Menu , MenuItem = remote . MenuItem ;
7+ const Menu = remote . Menu ;
88
99const standardMenuTemplate = [
1010 {
@@ -55,7 +55,7 @@ const textMenuTemplate = [
5555
5656const standardInputMenu = Menu . buildFromTemplate ( standardMenuTemplate ) ;
5757
58- const popupContextMenu = async ( event , params ) => {
58+ const popupContextMenu = ( event , params ) => {
5959 switch ( params . mediaType ) {
6060 case 'video' :
6161 case 'image' :
You can’t perform that action at this time.
0 commit comments