Skip to content

Commit c23330e

Browse files
author
minggo
authored
webview supports https in jsb (#17805)
1 parent 71bb118 commit c23330e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cocos/scripting/js-bindings/script/ccui/jsb_cocos2d_ui.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ if (ccui.WebView)
564564

565565
ccui.WebView.prototype._loadURL = ccui.WebView.prototype.loadURL;
566566
ccui.WebView.prototype.loadURL = function (url) {
567-
if (url.indexOf("http://") >= 0)
567+
if (url.indexOf("http://") >= 0 || url.indexOf("https://") >= 0)
568568
{
569569
this._loadURL(url);
570570
}

0 commit comments

Comments
 (0)