From 9c141479670bca44ff6ae791862a4d20b79641e8 Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Sat, 26 Jun 2021 17:09:50 +0530 Subject: [PATCH] UX update added tag search --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index c211285..73471e3 100644 --- a/index.html +++ b/index.html @@ -942,7 +942,7 @@ advancedSearch['query'] = searchKey const torrents = await getDataFromIDB() const options = { - keys: ['name', 'filename'], + keys: ['name', 'filename', 'tags'], threshold: 0.3 } let result @@ -950,7 +950,7 @@ options.keys = ['type'] let fuseSearch = new Fuse(torrents, options) result = fuseSearch.search(`'${advancedSearch.category}`).map(elem => elem.item) - options.keys = ['name', 'filename'] + options.keys = ['name', 'filename', 'tags'] fuseSearch = new Fuse(result, options) result = fuseSearch.search(searchKey).map(elem => elem.item) }