chore: update tslint rules (#7391)

This commit is contained in:
Manol Donev
2019-06-26 15:13:48 +03:00
committed by GitHub
parent 92370279d8
commit 4f39fb728b
399 changed files with 3101 additions and 2210 deletions

View File

@@ -64,7 +64,7 @@ export abstract class WebViewBase extends ContainerView implements WebViewDefini
[srcProperty.setNative](src: string) {
this.stopLoading();
// Add file:/// prefix for local files.
// Add file:/// prefix for local files.
// They should be loaded with _loadUrl() method as it handles query params.
if (src.indexOf("~/") === 0) {
src = `file:///${knownFolders.currentApp().path}/` + src.substr(2);
@@ -86,6 +86,7 @@ export abstract class WebViewBase extends ContainerView implements WebViewDefini
}
}
}
export interface WebViewBase {
on(eventNames: string, callback: (data: EventData) => void, thisArg?: any);
on(event: "loadFinished", callback: (args: LoadEventData) => void, thisArg?: any);