From b5509a16366ed5f99f35dbcd48056e094b0ca16f Mon Sep 17 00:00:00 2001 From: Kevin Abel <kevin.abel.0@gmail.com> Date: Fri, 30 May 2014 08:15:46 -0500 Subject: [PATCH] Workaround google script error by passing crafted (unused) params The v1 API method "execute" needs an object as the third param to avoid a TypeError. --- www/js/search.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/www/js/search.js b/www/js/search.js index 92cee1a..4b6c0e3 100644 --- a/www/js/search.js +++ b/www/js/search.js @@ -183,10 +183,10 @@ trackQuery(q); } try { - activeSearch.execute(q); + activeSearch.execute(q, undefined, {}); } catch (e) { - console.log(e); - queryComplete({root: activeSearch.root}); + console && console.log(e); + queryComplete(activeSearch); } directorySearch.execute(q); $(wrapperMain).fadeIn(); -- GitLab