Skip to content

Commit

Permalink
feat(component): 所有情况都支持 自定义失败回调
Browse files Browse the repository at this point in the history
  • Loading branch information
suanmei committed Aug 14, 2018
1 parent 1619546 commit 7e33120
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.cjs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,13 @@ class CallApp {
checkOpenFall = this.fallToFbUrl;
}

if (!checkOpenFall) return;
if (typeof callback !== 'undefined') {
CallApp.fallToCustomCb(callback);
return;
}

if (!checkOpenFall) return;

checkOpenFall.call(this);
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "callapp-lib",
"version": "1.3.2",
"version": "1.3.3",
"description": "call native webview from webpage",
"main": "dist/index.cjs.js",
"scripts": {
Expand Down

0 comments on commit 7e33120

Please sign in to comment.