Skip to content

Commit

Permalink
feat(options): switched to using options for arguments, closes #5
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Jun 6, 2016
1 parent bda1e53 commit 12540dc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions timer-bar.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
;(function (timerDurationMinutes, barColor, height) {
;(function initTimerBar ({ timerDurationMinutes, barColor, height }) {
function toText (response) { return response.text() }

function loadScript (url) {
Expand Down Expand Up @@ -54,4 +54,8 @@
} else {
registerKey()
}
}(45 /* minute(s) */, '#ff00ff' /* color */, 4 /* height pixels */))
}({
timerDurationMinutes: 45,
barColor: '#ff00ff',
height: 4
}))

0 comments on commit 12540dc

Please sign in to comment.