Skip to content

Commit ad7e57f

Browse files
committed
-Cleanup
1 parent b1e5695 commit ad7e57f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

src/helpers/webview/bridge.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.
1515
remote.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);

src/helpers/webview/context_menu.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
const { ipcRenderer, remote } = require('electron');
55
const { EVENT_SPELL_ADD_CUSTOM_WORD } = require('../../constants');
66

7-
const Menu = remote.Menu, MenuItem = remote.MenuItem;
7+
const Menu = remote.Menu;
88

99
const standardMenuTemplate = [
1010
{
@@ -55,7 +55,7 @@ const textMenuTemplate = [
5555

5656
const 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':

0 commit comments

Comments
 (0)