Skip to content

Commit

Permalink
minor async change
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyawad88 committed Apr 6, 2018
1 parent c454b2c commit 71524f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/my-app/my-app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ export class MyApp {
}

@Listen('body:ionToastWillDismiss')
reload() {
navigator.serviceWorker.getRegistration().then(x=> x.update());
async reload() {
var registration = await navigator.serviceWorker.getRegistration();
registration.update();
window.location.reload();
}

Expand Down

0 comments on commit 71524f3

Please sign in to comment.