Skip to content

Commit

Permalink
fix message check & update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
nd0ut committed Sep 5, 2018
1 parent 12e151d commit a984d5a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions HISTORY.markdown
Expand Up @@ -7,8 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Fixed

* Fixed error `Cannot read property 'type' of null` that often occurs together
with the grecaptcha2. See issue [#500][github-issue-500].

[github-issue-500]: https://github.com/uploadcare/uploadcare-widget/issues/500
[Unreleased]: https://github.com/uploadcare/uploadcare-widget/compare/v3.6.0...HEAD

## [3.6.0] - 2018-07-26
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/uploadcare/utils/messages.coffee
Expand Up @@ -12,7 +12,7 @@ uploadcare.namespace 'utils', (ns) ->
catch
return

if message.type of callbacks
if message?.type and message.type of callbacks
for item in callbacks[message.type]
if e.source == item[0]
item[1](message)
Expand Down

0 comments on commit a984d5a

Please sign in to comment.