Skip to content

Commit

Permalink
Fix session history use
Browse files Browse the repository at this point in the history
  • Loading branch information
nmaier committed Aug 28, 2012
1 parent 9544fcc commit 7f9f0fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ function main(window, document) {
}

// Already in history?
let sh = nav.sessionHistor;
let sh = nav.sessionHistory;
if (sh && sh.count > 1) {
for (let i = sh.count - 1; i >= 0; --i) {
for (let i = sh.count; ~(--i); ) {
let entry = sh.getEntryAtIndex(i, false);
if (entry && entry.URI.spec == spec) {
nav.gotoIndex(i);
Expand Down

0 comments on commit 7f9f0fa

Please sign in to comment.