summaryrefslogtreecommitdiff
path: root/elm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2020-07-09 13:59:47 +0200
committerYorhel <git@yorhel.nl>2020-07-09 13:59:47 +0200
commit718d0d74e2c9a9f1f1a6ce7db4e5f5e8d367472f (patch)
tree0dcb6dc436cafda2a3106c6cb6c7268e5538a8c6 /elm
parent8085cf40d5287e3eb43d3a57212d76af50aa8e1c (diff)
iv.js: Fix silly JS error
Diffstat (limited to 'elm')
-rw-r--r--elm/iv.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/elm/iv.js b/elm/iv.js
index d81b6a19..319fc8c0 100644
--- a/elm/iv.js
+++ b/elm/iv.js
@@ -143,7 +143,7 @@ function show(ev) {
ivimg.textContent = '';
ivimg.appendChild(img);
- let flag = opt[2] ? opt[2].match(/^([0-2])([0-2])([0-9]+)$/) : null;
+ var flag = opt[2] ? opt[2].match(/^([0-2])([0-2])([0-9]+)$/) : null;
var imgid = u.match(/\/([a-z]{2})\/[0-9]{2}\/([0-9]+)\./);
if(flag && imgid) {
ivflag.href = '/img/'+imgid[1]+imgid[2];