File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ var WebView = {
14
14
return window . WEBVIEW_SERVER_URL + url . replace ( 'file://' , '/_app_file_' ) ;
15
15
}
16
16
if ( url . startsWith ( 'http://' ) && convertHttp ) {
17
- return window . WEBVIEW_SERVER_URL + url . replace ( 'http://' , '/_http_proxy_' ) ;
17
+ return window . WEBVIEW_SERVER_URL + encodeURIComponent ( url . replace ( 'http://' , '/_http_proxy_' ) ) ;
18
18
}
19
19
if ( url . startsWith ( 'https://' ) && convertHttp ) {
20
- return window . WEBVIEW_SERVER_URL + url . replace ( 'https://' , '/_https_proxy_' ) ;
20
+ return window . WEBVIEW_SERVER_URL + encodeURIComponent ( url . replace ( 'https://' , '/_https_proxy_' ) ) ;
21
21
}
22
22
if ( url . startsWith ( 'content://' ) ) {
23
23
return window . WEBVIEW_SERVER_URL + url . replace ( 'content:/' , '/_app_content_' ) ;
You can’t perform that action at this time.
0 commit comments