bugfix... (not final)

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2018-09-19 03:34:57 +03:00
parent 8905152126
commit ab0e429189

View File

@ -161,10 +161,11 @@ var URLHistoryActions = actions.Actions({
var k = Object.keys(this.url_history) var k = Object.keys(this.url_history)
// we will not remove pinned items... // we will not remove pinned items...
.filter((function(e){ .filter((function(e){
return !this.url_history[e].pinned }).bind(this)) return this.url_history[e].pinned != null }).bind(this))
// drop first url in order -- first added... // drop first url in order -- first added...
this.dropURLFromHistory(k[0]) k.length > l
&& this.dropURLFromHistory(k[0])
} while(k.length - 1 > l) } while(k.length - 1 > l)
} }
}], }],