Skip to content

Commit

Permalink
Also use pageshow event for URL change cue
Browse files Browse the repository at this point in the history
  • Loading branch information
lmorchard committed Nov 10, 2015
1 parent 818724c commit e295516
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions idea_town/frontend/static-src/app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ app.extend({

if (!app.router.history.started()) {
app.router.history.start();
// HACK for Issue #124 - sometimes popstate doesn't fire on navigation,
// but pageshow does. But, we just want to know if the URL changed.
addEventListener('pageshow', app.router.history.checkUrl, false);
}

app.me.on('change:hasAddon', () => {
Expand Down

0 comments on commit e295516

Please sign in to comment.