Skip to content

Commit 89ce899

Browse files
authored
fix: Handle convertFileSrc when using ionic:// scheme (#236)
1 parent f2dad2a commit 89ce899

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/www/util.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ var WebView = {
88
if (!url.startsWith('file://')) {
99
return url;
1010
}
11+
if (window.WEBVIEW_SERVER_URL.startsWith('ionic://')) {
12+
return url.replace('file', 'ionic-asset');
13+
}
1114
url = url.substr(7); // len("file://") == 7
1215
if (url.length === 0 || url[0] !== '/') { // ensure the new URL starts with /
1316
url = '/' + url;

0 commit comments

Comments
 (0)