Skip to content

Commit ca4e1dd

Browse files
Thomas Rueckstiessimlucas
authored andcommitted
Use correct namespace for stored connections
This bug exhibits only when running npm start with a `-beta.#` suffix in the version string.
1 parent 1f04330 commit ca4e1dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/models/connection-collection.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ var Collection = require('ampersand-rest-collection');
22
var Connection = require('./connection');
33
var storageMixin = require('storage-mixin');
44
var _ = require('lodash');
5-
var pkg = require('../../../package.json');
65
var selectableMixin = require('./selectable-collection-mixin');
6+
var electronApp = require('electron').remote.app;
77

88
module.exports = Collection.extend(selectableMixin, storageMixin, {
99
model: Connection,
1010
namespace: 'Connections',
1111
storage: {
1212
backend: 'splice',
13-
appName: pkg.productName
13+
appName: electronApp.getName()
1414
},
1515
comparator: function(a, b) {
1616
if (a.is_favorite === b.is_favorite) {

0 commit comments

Comments
 (0)