disable timer throttling

This commit is contained in:
antelle 2016-04-10 10:37:55 +03:00
parent 5b87b9a560
commit 0b167536b7
1 changed files with 5 additions and 0 deletions

View File

@ -46,6 +46,7 @@ app.on('window-all-closed', function() {
}
});
app.on('ready', function() {
setAppOptions();
createMainWindow();
setGlobalShortcuts();
});
@ -90,6 +91,10 @@ app.getMainWindow = function() {
return mainWindow;
};
function setAppOptions() {
app.commandLine.appendSwitch('disable-background-timer-throttling');
}
function createMainWindow() {
mainWindow = new BrowserWindow({
show: false,