Skip to content

Commit 8c42a8b

Browse files
authored
Merge pull request #1250 from hovancik/test
Improve husky integration and fix some warnings
2 parents 2cea8b8 + 1c63bec commit 8c42a8b

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

app/main.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1142,8 +1142,8 @@ function getTrayMenuTemplate () {
11421142

11431143
const StatusMessages = require('./utils/statusMessages')
11441144
const statusMessage = new StatusMessages({
1145-
breakPlanner: breakPlanner,
1146-
settings: settings
1145+
breakPlanner,
1146+
settings
11471147
}).trayMessage
11481148

11491149
if (statusMessage !== '') {
@@ -1177,7 +1177,7 @@ function getTrayMenuTemplate () {
11771177
if (settings.get('break') || settings.get('microbreak')) {
11781178
trayMenu.push({
11791179
label: i18next.t('main.skipToTheNext'),
1180-
submenu: submenu
1180+
submenu
11811181
})
11821182
}
11831183
}
@@ -1279,8 +1279,8 @@ function updateToolTip () {
12791279
const StatusMessages = require('./utils/statusMessages')
12801280
let trayMessage = i18next.t('main.toolTipHeader')
12811281
const message = new StatusMessages({
1282-
breakPlanner: breakPlanner,
1283-
settings: settings
1282+
breakPlanner,
1283+
settings
12841284
}).trayMessage
12851285
if (message !== '') {
12861286
trayMessage += '\n\n' + message
@@ -1290,7 +1290,7 @@ function updateToolTip () {
12901290

12911291
function showNotification (text) {
12921292
processWin.webContents.send('showNotification', {
1293-
text: text,
1293+
text,
12941294
silent: settings.get('silentNotifications')
12951295
})
12961296
}
@@ -1365,7 +1365,7 @@ ipcMain.on('send-settings', function (event) {
13651365
function settingsToSend () {
13661366
const loginItemSettings = app.getLoginItemSettings()
13671367
const openAtLogin = loginItemSettings.openAtLogin
1368-
return Object.assign({}, settings.store, { openAtLogin: openAtLogin })
1368+
return Object.assign({}, settings.store, { openAtLogin })
13691369
}
13701370

13711371
ipcMain.on('play-sound', function (event, sound) {

app/preferences.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ window.onload = (e) => {
302302
}
303303
}
304304
// linux is broken ;/
305-
if (!!height) {
305+
if (height) {
306306
remote.getCurrentWindow().setSize(bounds.width, height)
307307
}
308308
}

app/process.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ window.onload = (e) => {
4040
const title = shouldShowNotificationTitle(process.platform, process.getSystemVersion()) ? 'Stretchly' : ''
4141
new Notification(title, { // eslint-disable-line no-new
4242
body: text,
43-
silent: silent
43+
silent
4444
})
4545
})
4646

4747
function notifyNewVersion (silent) {
4848
const title = shouldShowNotificationTitle(process.platform, process.getSystemVersion()) ? 'Stretchly' : ''
4949
const notification = new Notification(title, {
5050
body: i18next.t('process.newVersionAvailable'),
51-
silent: silent
51+
silent
5252
})
5353
notification.onclick = () => shell.openExternal('https://hovancik.net/stretchly/downloads')
5454
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"tdd": "mocha --watch test",
1818
"lint": "./node_modules/.bin/standard",
1919
"prepublishOnly": "pinst --disable",
20-
"postpublish": "pinst --enable"
20+
"postpublish": "pinst --enable",
21+
"prepare": "husky install"
2122
},
2223
"repository": {
2324
"type": "git",

0 commit comments

Comments
 (0)