Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Also use pageshow event for URL change cue
Browse files Browse the repository at this point in the history
Closes #124
  • Loading branch information
lmorchard committed Nov 10, 2015
1 parent 63ee4e8 commit bdcd303
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 bdcd303

Please sign in to comment.