Skip to content

Commit

Permalink
fix: 修复连续多次调用 callHandler 部分回调函数未被调用的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Anshiii committed May 21, 2019
1 parent 3a290d4 commit 78dca3f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions library/src/main/assets/WebViewJavascriptBridge.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

var responseCallbacks = {};
var uniqueId = 1;

var lastCallTime = 0;
var stoId = null;

Expand Down Expand Up @@ -77,7 +77,6 @@
messagingIframe.src = CUSTOM_PROTOCOL_SCHEME + '://' + QUEUE_HAS_MESSAGE;
}


// 提供给native调用,该函数作用:获取sendMessageQueue返回给native,由于android不能直接获取返回的内容,所以使用url shouldOverrideUrlLoading 的方式返回内容
function _fetchQueue() {
// 空数组直接返回
Expand Down

0 comments on commit 78dca3f

Please sign in to comment.