Skip to content

Commit d3349f7

Browse files
committed
Move boolean check
1 parent 0f65c2d commit d3349f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/www/util.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ var WebView = {
1313
if (url.startsWith('file://')) {
1414
return window.WEBVIEW_SERVER_URL + url.replace('file://', '/_app_file_');
1515
}
16-
if (url.startsWith('http://') && convertHttp) {
16+
if (convertHttp && url.startsWith('http://')) {
1717
return window.WEBVIEW_SERVER_URL + encodeURIComponent(url.replace('http://', '/_http_proxy_'));
1818
}
19-
if (url.startsWith('https://') && convertHttp) {
19+
if (convertHttp && url.startsWith('https://')) {
2020
return window.WEBVIEW_SERVER_URL + encodeURIComponent(url.replace('https://', '/_https_proxy_'));
2121
}
2222
if (url.startsWith('content://')) {

0 commit comments

Comments
 (0)