Skip to content

Commit 75e8597

Browse files
WaleyChenrueckstiess
authored andcommitted
INT-677 fixes for npm run check
1 parent 885638b commit 75e8597

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/electron/window-manager.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
var AppMenu = require('./menu');
88
var BrowserWindow = require('browser-window');
9-
var Clipboard = require('clipboard');
109
var Notifier = require('node-notifier');
1110
var Path = require('path');
1211

@@ -175,6 +174,9 @@ app.on('show autofill connection notification', function() {
175174
'title': 'Autofill Connection',
176175
'wait': true
177176
}, function(err, resp) {
177+
if (err) {
178+
debug(err);
179+
}
178180
if (resp === 'Activate\n') {
179181
connectWindow.webContents.send('message', 'autofill-connection-from-clipboard');
180182
}
@@ -209,6 +211,9 @@ app.on('show bugsnag OS notification', function(errorMsg) {
209211
'title': 'MongoDB Compass Exception',
210212
'wait': true
211213
}, function(err, resp) {
214+
if (err) {
215+
debug(err);
216+
}
212217
if (resp === 'Activate\n') {
213218
openDevTools();
214219
}

0 commit comments

Comments
 (0)