Skip to content

Commit

Permalink
lib/main: regression fix => wouldn't actually show window if args wer…
Browse files Browse the repository at this point in the history
…en't passed
  • Loading branch information
jprichardson committed Jul 13, 2015
1 parent 3938f59 commit 6dcbc0c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ function createWindow (options) {
window._loadUrlWithArgs = _loadUrlWithArgs.bind(window)

window.showUrl = function (httpOrFileUrl, args, callback) {
if (typeof args === 'function') {
callback = args
args = null
}

window._loadUrlWithArgs(httpOrFileUrl, args, function () {
window.show()
callback && callback.apply(this, arguments)
Expand Down

0 comments on commit 6dcbc0c

Please sign in to comment.