summaryrefslogtreecommitdiff
path: root/assets/js/mumi.js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js/mumi.js')
-rw-r--r--assets/js/mumi.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/assets/js/mumi.js b/assets/js/mumi.js
index a44a386..9936f34 100644
--- a/assets/js/mumi.js
+++ b/assets/js/mumi.js
@@ -118,9 +118,7 @@ var mumi = (function () {
const form = document.querySelector ("form#search");
form.addEventListener ("submit", function (event) {
event.preventDefault ();
- for (token of tokenInput.getTokens ()) {
- inputElement.value += token.text + " ";
- }
+ inputElement.value = tokenInput.getTokens().map(t => t.text).join(' ');
inputElement.style.visibility = 'hidden';
form.submit ();
});