From 9bee8afe955b2fa32df63bb0e06019da831894b2 Mon Sep 17 00:00:00 2001 From: cutls Date: Wed, 8 Apr 2020 15:30:20 +0900 Subject: [PATCH] misc --- app/js/tl/src.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/js/tl/src.js b/app/js/tl/src.js index 658cdef8..595fef95 100644 --- a/app/js/tl/src.js +++ b/app/js/tl/src.js @@ -116,8 +116,11 @@ function tsAdd(q) { parseColumn('add') } function tootsearch(tlid, q) { + if(!q || q=='undefined') { + return false + } var start = 'https://tootsearch.chotto.moe/api/v1/search?from=0&sort=created_at%3Adesc&q=' + q - console.log('Toot srrach at ' + start) + console.log('Toot search at ' + start) $('#notice_' + tlid).text('tootsearch(' + q + ')') $('#notice_icon_' + tlid).text('search') fetch(start, {