Skip to content

Commit

Permalink
Electron-32 - initiating activity detection while setting up the wind…
Browse files Browse the repository at this point in the history
…ow (#114)
  • Loading branch information
KiranNiranjan authored and Lynn committed May 27, 2017
1 parent 013b02e commit 2acba44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions js/activityDetection/activityDetection.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ function send(data) {
function setActivityWindow(period, win) {
maxIdleTime = period;
activityWindow = win;
// Initiate activity detection to monitor user activity status
initiateActivityDetection();
}

module.exports = {
Expand Down
4 changes: 0 additions & 4 deletions js/windowMgr.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ const log = require('./log.js');
const logLevels = require('./enums/logLevels.js');
const notify = require('./notify/electron-notify.js');

const activityDetection = require('./activityDetection/activityDetection.js');

const throttle = require('./utils/throttle.js');
const { getConfigField, updateConfigField } = require('./config.js');

Expand Down Expand Up @@ -136,8 +134,6 @@ function doCreateMainWindow(initialUrl, initialBounds) {
notify.reset();
log.send(logLevels.INFO, 'main window loaded url: ' + url);

// Initiate activity detection to monitor user activity status
activityDetection.initiateActivityDetection();
}
});

Expand Down

0 comments on commit 2acba44

Please sign in to comment.