Skip to content

Commit

Permalink
Move boolean check
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasMerz committed Mar 4, 2020
1 parent cbf0e88 commit 1b3d15c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/www/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ var WebView = {
if (url.startsWith('file://')) {
return window.WEBVIEW_SERVER_URL + url.replace('file://', '/_app_file_');
}
if (url.startsWith('http://') && convertHttp) {
if (convertHttp && url.startsWith('http://')) {
return window.WEBVIEW_SERVER_URL + url.replace('http://', '/_http_proxy_');
}
if (url.startsWith('https://') && convertHttp) {
if (convertHttp && url.startsWith('https://')) {
return window.WEBVIEW_SERVER_URL + url.replace('https://', '/_https_proxy_');
}
if (url.startsWith('content://')) {
Expand Down

0 comments on commit 1b3d15c

Please sign in to comment.