File tree Expand file tree Collapse file tree 2 files changed +0
-20
lines changed Expand file tree Collapse file tree 2 files changed +0
-20
lines changed Original file line number Diff line number Diff line change 89
89
"mongodb-ns" : " ^1.0.3" ,
90
90
"mongodb-schema" : " ^4.2.0" ,
91
91
"ms" : " ^0.7.1" ,
92
- "node-notifier" : " ^4.3.1" ,
93
92
"numeral" : " ^1.5.3" ,
94
93
"pluralize" : " ^1.2.1" ,
95
94
"qs" : " ^5.2.0" ,
Original file line number Diff line number Diff line change 5
5
var electron = require ( 'electron' ) ;
6
6
var AppMenu = require ( './menu' ) ;
7
7
var BrowserWindow = electron . BrowserWindow ;
8
- var Notifier = require ( 'node-notifier' ) ;
9
8
10
9
var _ = require ( 'lodash' ) ;
11
10
var app = electron . app ;
@@ -255,24 +254,6 @@ app.on('before-quit', function() {
255
254
BrowserWindow . getAllWindows ( ) [ 0 ] . webContents . send ( 'message' , 'app-quit' ) ;
256
255
} ) ;
257
256
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
-
276
257
/**
277
258
* When electron's main renderer has completed setup,
278
259
* we'll always show the [connect][./src/connect] dialog
You can’t perform that action at this time.
0 commit comments