Skip to content

Commit 302565f

Browse files
durranimlucas
authored andcommitted
Use electronApp.getName() in Connection model as well
1 parent 9abf5d7 commit 302565f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/app/models/connection.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ var debug = require('debug')('mongodb-compass:models:connection');
55
var uuid = require('uuid');
66
var metrics = require('mongodb-js-metrics')();
77
var pkg = require('../../../package.json');
8+
var electronApp = require('electron').remote.app;
89

910
/**
1011
* Configuration for connecting to a MongoDB Deployment.
@@ -14,7 +15,7 @@ module.exports = Connection.extend(storageMixin, {
1415
namespace: 'Connections',
1516
storage: {
1617
backend: 'splice',
17-
appName: pkg.productName,
18+
appName: electronApp.getName(),
1819
secureCondition: function(val, key) {
1920
return key.match(/(password|passphrase)/i);
2021
}

0 commit comments

Comments
 (0)