mirror of https://github.com/axmolengine/axmol.git
fixed base URL for webview on android doesn't work (#16279)
fixed base URL for webview on android doesn't work
This commit is contained in:
parent
808a10429b
commit
f8b2d8fe0f
|
@ -179,7 +179,7 @@ namespace cocos2d {
|
|||
}
|
||||
|
||||
void WebViewImpl::loadHTMLString(const std::string &string, const std::string &baseURL) {
|
||||
JniHelper::callStaticVoidMethod(className, "loadHTMLString", _viewTag, string, baseURL);
|
||||
JniHelper::callStaticVoidMethod(className, "loadHTMLString", _viewTag, string, getFixedBaseUrl(baseURL));
|
||||
}
|
||||
|
||||
void WebViewImpl::loadURL(const std::string &url) {
|
||||
|
|
Loading…
Reference in New Issue