mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 04:53:58 +08:00
chore(): tslint checks
This commit is contained in:
@ -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');
|
||||
|
Reference in New Issue
Block a user