From bd1a1e4f76f7590c997be8927acc5770fa66098c Mon Sep 17 00:00:00 2001 From: HugoPoi Date: Sat, 4 Jul 2020 18:11:14 +0200 Subject: [PATCH] fix: proper fix for apple --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 4be8f32..71ba283 100644 --- a/index.js +++ b/index.js @@ -65,7 +65,7 @@ async function searchOnMyFreeMp3(query){ }) .then(res => res.text()) .then(jsonp => vm.runInNewContext(jsonp, { callback: (payload) => payload.response })) - .then(items => _.filter(items, _.isString)); + .then(items => _.filter(items, item => !_.isString(item))); } function matchScore(spotifyMetas, vkmusicMetas){