From 65cf25e0ff1236ecced7ffaa2ba562d1ba12e0e7 Mon Sep 17 00:00:00 2001 From: Ealhad Date: Fri, 9 Nov 2018 17:08:37 +0100 Subject: [PATCH] Make search case-insensitive --- src/background.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/background.ts b/src/background.ts index 2d4bb98..6e60c17 100644 --- a/src/background.ts +++ b/src/background.ts @@ -30,7 +30,7 @@ const searchByName = query => new Promise(async (resolve, reject) => { .then(function(data) { if (data.total > 0) { const video = data.data[0] - if (video.name === query) { + if (_.toLower(video.name) === _.toLower(query)) { resolve(video); } }