Skip to content

Update WebViewJavascriptBridgeBase.m#371

Open
wcgCoding wants to merge 1 commit intomarcuswestin:masterfrom
wcgCoding:master
Open

Update WebViewJavascriptBridgeBase.m#371
wcgCoding wants to merge 1 commit intomarcuswestin:masterfrom
wcgCoding:master

Conversation

@wcgCoding
Copy link

If responseCallback is NULL, it will be crashed.The reason for this is that the method of using reset is incorrect.

Before your create your PR:

Please add tests for any new or changed functionality!

  1. Edit Tests/WebViewJavascriptBridgeTests/BridgeTests.m
  2. Create a new test which demostrates your changes.
  3. Run make test and make sure your test is passing
  4. That's it!

Thanks for improving WebViewJavascriptBridge!

Cheers,
@marcuswestin

I found the reason. If responseCallback is NULL, it will be crashed.The reason for this is that the method of using reset is incorrect.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant