diff options
Diffstat (limited to 'init.js')
-rw-r--r-- | init.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -35,7 +35,7 @@ module.exports.search = (query, userAgent = "Mozilla/5.0 (X11; Ubuntu; Linux x86 ) module.exports.searchRandom = (query, userAgent) => module.exports.search(query, userAgent) - .then(results => results[Math.floor(Math.random() * results.length)) + .then(results => results[Math.floor(Math.random() * results.length)]) /* |