aboutsummaryrefslogtreecommitdiff
path: root/init.js
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2022-03-05 14:48:47 +0100
committerElias Fleckenstein <eliasfleckenstein@web.de>2022-03-05 14:48:47 +0100
commit47982b0f41790d9fdb6bdac7084c02015b5d3049 (patch)
treef542af95a1485994d7bf50070b75e5dfa5a3c3d3 /init.js
parent0287e8bfd0a359d9c1acefe19c278fd690ae3472 (diff)
downloadgoogle_images-47982b0f41790d9fdb6bdac7084c02015b5d3049.tar.xz
Fix syntax error
Diffstat (limited to 'init.js')
-rw-r--r--init.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.js b/init.js
index e9d8a57..ac45522 100644
--- a/init.js
+++ b/init.js
@@ -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)])
/*