Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Keep at most 10 history entries
Browse files Browse the repository at this point in the history
Auditors: @diracdeltas
  • Loading branch information
bbondy committed May 21, 2016
1 parent 24d60d9 commit 69a0284
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/stores/windowStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ const addToHistory = (frameProps) => {
if (!aboutUrls.get(frameProps.get('location'))) {
history = history.push(frameProps.get('location'))
}
return history
return history.slice(-10)

This comment has been minimized.

Copy link
@diracdeltas

diracdeltas May 21, 2016

Member

++ thanks!

}

const windowStore = new WindowStore()
Expand Down

0 comments on commit 69a0284

Please sign in to comment.