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

Also use pageshow event for URL change cue #228

Merged
merged 1 commit into from
Nov 11, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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