Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2018-09-20 05:25:15 +03:00
parent a5aec38bcb
commit 2fa1e5a510

View File

@ -160,6 +160,8 @@ var URLHistoryActions = actions.Actions({
var to_remove = Object.keys(this.url_history)
// we will not remove pinned items...
.filter(function(e){
// NOTE: .pinned can be 0 so we can't just use
// that.url_history[e].pinned as a test...
return that.url_history[e].pinned == null })
// we clear the head of the list -- first/oldest urls added...
to_remove.reverse()