mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-08-01 12:10:33 +00:00
fix lint errors
This commit is contained in:
parent
53bdf43af4
commit
6c768230ca
4 changed files with 7 additions and 7 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
/* @ngInject */
|
||||
function AgendaAndHistoryCtrl() {
|
||||
let vm = this;
|
||||
//let vm = this;
|
||||
}
|
||||
|
||||
})();
|
||||
|
|
|
|||
|
|
@ -69,5 +69,5 @@
|
|||
'grey',
|
||||
'blue-grey'
|
||||
]
|
||||
)
|
||||
);
|
||||
})();
|
||||
|
|
|
|||
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue