GitHub user imgx64 opened a pull request: https://github.com/apache/cordova-plugin-statusbar/pull/79
Browser: Check callback exists before calling it ### Platforms affected Browser. ### What does this PR do? Fix exception in Browser platform when calling StatusBar.styleDefault() (The error is: ERROR TypeError: win is not a function). ### What testing has been done on this change? I Ran it in a browser, and it stopped throwing the exception. ### Checklist (I think this change is too trivial for the below, but I can do it it if necessary) - [ ] [Reported an issue](http://cordova.apache.org/contribute/issues.html) in the JIRA database - [ ] Commit message follows the format: "CB-3232: (android) Fix bug with resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform affected. - [ ] Added automated test coverage as appropriate for this change. You can merge this pull request into a Git repository by running: $ git pull https://github.com/imgx64/cordova-plugin-statusbar patch-1 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cordova-plugin-statusbar/pull/79.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #79 ---- commit 5d97cfab37f55ce69eebb1c8f9c9c50768c870f1 Author: imgx64 <img...@gmail.com> Date: 2017-05-04T10:02:38Z Browser: Check callback exists before calling it ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org