chore(): tslint checks

This commit is contained in:
Manu Mtz.-Almeida
2018-09-06 21:49:28 +02:00
parent abc9afcc35
commit 4876df928d
19 changed files with 61 additions and 26 deletions

View File

@ -46,11 +46,11 @@ export class BackButton {
*/
@Prop() text?: string;
private onClick(ev: Event) {
async onClick(ev: Event) {
const nav = this.el.closest('ion-nav');
ev.preventDefault();
if (nav && nav.canGoBack()) {
if (nav && await nav.canGoBack()) {
return nav.pop({ skipIfBusy: true });
}
return openURL(this.win, this.defaultHref, ev, 'back');