1
0
mirror of https://github.com/rhysd/Mstdn.git synced 2024-11-28 20:24:10 +01:00

Add a context menu

Fixes #21.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
This commit is contained in:
Gergely Nagy 2017-05-03 17:27:39 +02:00
parent 8f60edd353
commit 5163f82b34
2 changed files with 3 additions and 0 deletions

View File

@ -7,6 +7,8 @@ import loadConfig from './config';
// loading this application. We need to disable the callback.
app.removeAllListeners();
require('electron-context-menu')({});
const appReady = new Promise<void>(resolve => app.once('ready', resolve));
process.on('unhandledRejection', (reason: string) => {

View File

@ -52,6 +52,7 @@
"dependencies": {
"electron": "^1.6.8-beta",
"electron-window-state": "^4.1.1",
"electron-context-menu": "^0.9.0",
"loglevel": "^1.4.1",
"menubar": "github:rhysd/menubar#mstdn",
"mousetrap": "^1.6.1"