We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d93f4e4 commit 9760822Copy full SHA for 9760822
src/www/util.js
@@ -5,13 +5,13 @@ var WebView = {
5
if (!url) {
6
return url;
7
}
8
- if (url.startsWith('/')) {
+ if (url.indexOf('/')===0) {
9
return window.WEBVIEW_SERVER_URL + '/_app_file_' + url;
10
11
- if (url.startsWith('file://')) {
+ if (url.indexOf('file://')===0) {
12
return window.WEBVIEW_SERVER_URL + url.replace('file://', '/_app_file_');
13
14
- if (url.startsWith('content://')) {
+ if (url.indexOf('content://')===0) {
15
return window.WEBVIEW_SERVER_URL + url.replace('content:/', '/_app_content_');
16
17
@@ -27,4 +27,4 @@ var WebView = {
27
28
29
30
-module.exports = WebView;
+module.exports = WebView;
0 commit comments