From ab0e4291891e9e7832c6ecf1a56528df10c50fab Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 19 Sep 2018 03:34:57 +0300 Subject: [PATCH] bugfix... (not final) Signed-off-by: Alex A. Naanou --- ui (gen4)/features/history.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui (gen4)/features/history.js b/ui (gen4)/features/history.js index 805c1a9a..22ca1b87 100755 --- a/ui (gen4)/features/history.js +++ b/ui (gen4)/features/history.js @@ -161,10 +161,11 @@ var URLHistoryActions = actions.Actions({ var k = Object.keys(this.url_history) // we will not remove pinned items... .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... - this.dropURLFromHistory(k[0]) + k.length > l + && this.dropURLFromHistory(k[0]) } while(k.length - 1 > l) } }],