summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
Diffstat (limited to 'static')
-rw-r--r--static/script.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/static/script.js b/static/script.js
index 4dfd3c6..b62d034 100644
--- a/static/script.js
+++ b/static/script.js
@@ -204,7 +204,7 @@ document.onload = load();
document.getElementById('score-game').addEventListener('click', function(evt) {
var s = score();
- var imageUrl = location.protocol + '//' + location.host + location.pathname + getImgUrl(globalId)
+ var imageUrl = location.protocol + '//' + location.host + getImgUrl(globalId)
var lensUrl = `https://www.google.com/searchbyimage?image_url=${imageUrl}&client=app`
document.getElementById('scoring').innerHTML = `<p>You were ${s} points away from zero.</p>
<p>This work is by <a target="_blank" href="${lensUrl}">${getArtist(globalId)}</a>.</p>`