| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent bb5cec3 commit dcad754
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -131,7 +131,8 @@ export class WebView extends WebViewBase { | |||
| 131 | 131 | ||
| 132 | 132 | public _loadUrl(src: string) { | |
| 133 | 133 | if (src.startsWith("file:///")) { | |
| 134 | - this.ios.loadFileURLAllowingReadAccessToURL(NSURL.URLWithString(src), NSURL.URLWithString(src)); | ||
| 134 | + var cachePath = src.substring(0, src.lastIndexOf("/")); | ||
| 135 | + this.ios.loadFileURLAllowingReadAccessToURL(NSURL.URLWithString(src), NSURL.URLWithString(cachePath)); | ||
| 135 | 136 | } else { | |
| 136 | 137 | this.ios.loadRequest(NSURLRequest.requestWithURL(NSURL.URLWithString(src))); | |
| 137 | 138 | } | |
@@ -160,4 +161,4 @@ export class WebView extends WebViewBase { | |||
| 160 | 161 | public reload() { | |
| 161 | 162 | this.ios.reload(); | |
| 162 | 163 | } | |
| 163 | - } | ||
| 164 | + } | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments