diff options
author | cyfraeviolae <cyfraeviolae> | 2024-01-19 15:23:31 -0500 |
---|---|---|
committer | cyfraeviolae <cyfraeviolae> | 2024-01-19 15:23:31 -0500 |
commit | 70f3c68da801bc3509123bad5d25d4f107de7fc2 (patch) | |
tree | 24e9e3636ab3705a3027d7dea50234f8cbda466d /static | |
parent | 2bd64a6a85e4f5be272e72ff4996cb319ca6b036 (diff) |
fix url
Diffstat (limited to 'static')
-rw-r--r-- | static/script.js | 2 |
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>` |