Skip to content
This repository has been archived by the owner on Apr 29, 2022. It is now read-only.

Commit

Permalink
Fix the app doesn't show up when triggered with protocol (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
quanglam2807 authored Oct 5, 2020
1 parent 1fbef72 commit c71b429
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions public/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,12 @@ if (!gotTheLock) {
if (mb && mb.window) {
mb.window.send('set-input-lang', 'auto');
mb.window.send('set-input-text', text);
mb.showWindow();
}
} else if (mainWindow) {
mainWindow.send('set-input-lang', 'auto');
mainWindow.send('set-input-text', text);
mainWindow.show();
}
}
});
Expand Down

0 comments on commit c71b429

Please sign in to comment.