mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
fix webview load https URL
This commit is contained in:
@@ -412,7 +412,7 @@ if (ccui.WebView)
|
||||
|
||||
ccui.WebView.prototype._loadURL = ccui.WebView.prototype.loadURL;
|
||||
ccui.WebView.prototype.loadURL = function (url) {
|
||||
if (url.indexOf("http://") >= 0)
|
||||
if (url.indexOf("http://") >= 0 || url.indexOf("https://") >= 0)
|
||||
{
|
||||
this._loadURL(url);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user