(src: string)
| 224 | } |
| 225 | |
| 226 | public _loadUrl(src: string) { |
| 227 | if (src.startsWith('file:///')) { |
| 228 | const cachePath = src.substring(0, src.lastIndexOf('/')); |
| 229 | this.nativeViewProtected.loadFileURLAllowingReadAccessToURL(NSURL.URLWithString(src), NSURL.URLWithString(cachePath)); |
| 230 | } else { |
| 231 | this.nativeViewProtected.loadRequest(NSURLRequest.requestWithURL(NSURL.URLWithString(src))); |
| 232 | } |
| 233 | } |
| 234 | |
| 235 | public _loadData(content: string) { |
| 236 | this.nativeViewProtected.loadHTMLStringBaseURL(content, NSURL.alloc().initWithString(`file:///${knownFolders.currentApp().path}/`)); |
no test coverage detected