Skip to content

Commit 229e1e9

Browse files
author
Emmanouil Konstantinidis
committed
Require at the top of the file
1 parent 3f0d233 commit 229e1e9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/js/stores/settings.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
var ipc = window.require('ipc');
2+
13
var Reflux = require('reflux');
24
var Actions = require('../actions/actions');
35

@@ -51,7 +53,6 @@ var SettingsStore = Reflux.createStore({
5153
},
5254

5355
handleStartup: function (value) {
54-
var ipc = window.require('ipc');
5556
var method = (value) ? 'startup-enable' : 'startup-disable';
5657
ipc.send(method);
5758
}

0 commit comments

Comments
 (0)