Skip to content

Commit 00efc90

Browse files
committed
Merge pull request #329 from 10gen/remove-node-notifier
🔥 INT-1248: Remove node-notifier
2 parents 86d744c + 8fd3378 commit 00efc90

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@
8989
"mongodb-ns": "^1.0.3",
9090
"mongodb-schema": "^4.2.0",
9191
"ms": "^0.7.1",
92-
"node-notifier": "^4.3.1",
9392
"numeral": "^1.5.3",
9493
"pluralize": "^1.2.1",
9594
"qs": "^5.2.0",

src/main/window-manager.js

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
var electron = require('electron');
66
var AppMenu = require('./menu');
77
var BrowserWindow = electron.BrowserWindow;
8-
var Notifier = require('node-notifier');
98

109
var _ = require('lodash');
1110
var app = electron.app;
@@ -255,24 +254,6 @@ app.on('before-quit', function() {
255254
BrowserWindow.getAllWindows()[0].webContents.send('message', 'app-quit');
256255
});
257256

258-
app.on('show bugsnag OS notification', function(errorMsg) {
259-
if (_.contains(['development', 'testing'], process.env.NODE_ENV)) {
260-
Notifier.notify({
261-
'icon': COMPASS_ICON_PATH,
262-
'message': errorMsg,
263-
'title': 'MongoDB Compass Exception',
264-
'wait': true
265-
}, function(err, resp) {
266-
if (err) {
267-
debug(err);
268-
}
269-
if (resp === 'Activate\n') {
270-
openDevTools();
271-
}
272-
});
273-
}
274-
});
275-
276257
/**
277258
* When electron's main renderer has completed setup,
278259
* we'll always show the [connect][./src/connect] dialog

0 commit comments

Comments
 (0)