From 142911ba6b479d9e286b86e1b9cd73aca5b31c76 Mon Sep 17 00:00:00 2001
From: Janne Koschinski <janne@kuschku.de>
Date: Tue, 21 Mar 2017 17:42:14 +0100
Subject: [PATCH] Do not log empty search values

---
 res/js/component/history.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/res/js/component/history.js b/res/js/component/history.js
index b06c500..e69bb88 100644
--- a/res/js/component/history.js
+++ b/res/js/component/history.js
@@ -33,6 +33,9 @@ class HistoryView {
     }
 
     add(item) {
+        if (item.query == "")
+            return;
+
         const idx = this.elements.map((item) => item.query).indexOf(item.query);
         if (idx !== -1) {
             this.list.removeChild(this.elements[idx].elem);
-- 
GitLab