diff --git a/app/scripts/_app.js b/app/scripts/_app.js index 62098ef552..3f2c2ccc1b 100644 --- a/app/scripts/_app.js +++ b/app/scripts/_app.js @@ -271,17 +271,17 @@ } } - function initMousewheelZoomForElectron($document, IS_ELECTRON) { + function initMousewheelZoomForElectron($document, $window, IS_ELECTRON) { if (IS_ELECTRON) { const { webFrame } = require('electron'); - Hamster($document[0]).wheel(function (event, delta, deltaX, deltaY) { + $window.Hamster($document[0]).wheel(function (event, delta, deltaX, deltaY) { if (event.originalEvent && event.originalEvent.ctrlKey) { const zoomFactor = webFrame.getZoomFactor(); if (deltaY === 1) { - webFrame.setZoomFactor(zoomFactor + 0.05) + webFrame.setZoomFactor(zoomFactor + 0.05); } else if (deltaY === -1) { - webFrame.setZoomFactor(zoomFactor - 0.05) + webFrame.setZoomFactor(zoomFactor - 0.05); } } }); diff --git a/app/scripts/agenda-and-history/agenda-and-history-d.js b/app/scripts/agenda-and-history/agenda-and-history-d.js index 949dff8363..d9ffbef127 100644 --- a/app/scripts/agenda-and-history/agenda-and-history-d.js +++ b/app/scripts/agenda-and-history/agenda-and-history-d.js @@ -26,7 +26,7 @@ /* @ngInject */ function AgendaAndHistoryCtrl() { - let vm = this; + //let vm = this; } })(); diff --git a/app/scripts/constants.js b/app/scripts/constants.js index 8b01453446..ca7c9897bb 100644 --- a/app/scripts/constants.js +++ b/app/scripts/constants.js @@ -69,5 +69,5 @@ 'grey', 'blue-grey' ] - ) + ); })(); diff --git a/app/scripts/main/global-services/tasks-s.js b/app/scripts/main/global-services/tasks-s.js index bc9076214f..e7a9f3baf3 100644 --- a/app/scripts/main/global-services/tasks-s.js +++ b/app/scripts/main/global-services/tasks-s.js @@ -342,7 +342,7 @@ const backlogT = this.getBacklog(); const doneBacklogT = this.getDoneBacklog(); - return _.concat(todaysT, backlogT, doneBacklogT) + return _.concat(todaysT, backlogT, doneBacklogT); }; this.flattenTasks = (tasks, checkFnParent, checkFnSub) => {