Skip to content

Commit

Permalink
Touch up whitespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonkearns committed Jul 17, 2017
1 parent d694b77 commit 4432034
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const returnFocusOsascript = `tell application "System Events"
end tell`

function returnFocusMac() {
osascript.execute(returnFocusOsascript, function(err, result, raw) {
osascript.execute(returnFocusOsascript, function (err, result, raw) {
if (err) {
return console.error(err)
}
Expand All @@ -74,7 +74,7 @@ function returnFocusMac() {
}

function writeToFile(filePath, fileContents) {
fs.writeFile(filePath, fileContents, function(err) {
fs.writeFile(filePath, fileContents, function (err) {
if (err) {
console.log(err)
}
Expand Down Expand Up @@ -133,10 +133,10 @@ function startTimer(flags) {
focusable: false
})

timerWindow.webContents.on('crashed', function() {
timerWindow.webContents.on('crashed', function () {
bugsnag.notify('crashed', 'timerWindow crashed')
})
timerWindow.on('unresponsive', function() {
timerWindow.on('unresponsive', function () {
bugsnag.notify('unresponsive', 'timerWindow unresponsive')
})

Expand Down Expand Up @@ -195,18 +195,18 @@ function createWindow() {
icon: `${assetsDirectory}/icon.ico`
})

mainWindow.webContents.on('crashed', function() {
mainWindow.webContents.on('crashed', function () {
bugsnag.notify('crashed', 'mainWindow crashed')
})
mainWindow.on('unresponsive', function() {
mainWindow.on('unresponsive', function () {
bugsnag.notify('unresponsive', 'mainWindow unresponsive')
})
setTimeout(() => {
mainWindow.setAlwaysOnTop(true) // delay to workaround https://github.com/electron/electron/issues/8287
}, 1000)
mainWindow.maximize()

screen.on('display-metrics-changed', function() {
screen.on('display-metrics-changed', function () {
mainWindow.maximize()
})

Expand Down Expand Up @@ -267,7 +267,7 @@ function createWindow() {
})

// Emitted when the window is closed.
mainWindow.on('closed', function() {
mainWindow.on('closed', function () {
// Dereference the window object, usually you would store windows
// in an array if your app supports multi windows, this is the time
// when you should delete the corresponding element.
Expand Down Expand Up @@ -340,15 +340,15 @@ function onReady() {
app.on('ready', onReady)

// Quit when all windows are closed.
app.on('window-all-closed', function() {
app.on('window-all-closed', function () {
// On OS X it is common for applications and their menu bar
// to stay active until the user quits explicitly with Cmd + Q
if (process.platform !== 'darwin') {
app.quit()
}
})

app.on('activate', function() {
app.on('activate', function () {
// On OS X it's common to re-create a window in the app when the
// dock icon is clicked and there are no other windows open.
if (mainWindow === null) {
Expand Down

0 comments on commit 4432034

Please sign in to comment.