From 8fd3378a8c5c30fe0ae0cb25300f54da9bf1a340 Mon Sep 17 00:00:00 2001 From: Lucas Hrabovsky Date: Thu, 17 Mar 2016 13:17:46 -0400 Subject: [PATCH] :fire: INT-998 INT-1248 Remove node-notifier dead code --- package.json | 1 - src/main/window-manager.js | 19 ------------------- 2 files changed, 20 deletions(-) diff --git a/package.json b/package.json index 9f792a9ea44..270f03395cc 100644 --- a/package.json +++ b/package.json @@ -89,7 +89,6 @@ "mongodb-ns": "^1.0.3", "mongodb-schema": "^4.2.0", "ms": "^0.7.1", - "node-notifier": "^4.3.1", "numeral": "^1.5.3", "pluralize": "^1.2.1", "qs": "^5.2.0", diff --git a/src/main/window-manager.js b/src/main/window-manager.js index 2b00067837b..876ea8d8530 100644 --- a/src/main/window-manager.js +++ b/src/main/window-manager.js @@ -5,7 +5,6 @@ var electron = require('electron'); var AppMenu = require('./menu'); var BrowserWindow = electron.BrowserWindow; -var Notifier = require('node-notifier'); var _ = require('lodash'); var app = electron.app; @@ -255,24 +254,6 @@ app.on('before-quit', function() { BrowserWindow.getAllWindows()[0].webContents.send('message', 'app-quit'); }); -app.on('show bugsnag OS notification', function(errorMsg) { - if (_.contains(['development', 'testing'], process.env.NODE_ENV)) { - Notifier.notify({ - 'icon': COMPASS_ICON_PATH, - 'message': errorMsg, - 'title': 'MongoDB Compass Exception', - 'wait': true - }, function(err, resp) { - if (err) { - debug(err); - } - if (resp === 'Activate\n') { - openDevTools(); - } - }); - } -}); - /** * When electron's main renderer has completed setup, * we'll always show the [connect][./src/connect] dialog