i broke single-image nsfw posts again :(
This commit is contained in:
parent
a73271c0b5
commit
cd0e444d16
1 changed files with 3 additions and 1 deletions
|
@ -82,7 +82,9 @@ function setup() {
|
||||||
mainfig = document.getElementById('mainfig');
|
mainfig = document.getElementById('mainfig');
|
||||||
mainimg = document.getElementById('mainimg');
|
mainimg = document.getElementById('mainimg');
|
||||||
mainlink = document.getElementById('mainlink');
|
mainlink = document.getElementById('mainlink');
|
||||||
altButtons = document.getElementById('alts').getElementsByTagName('input');
|
|
||||||
|
let alts = document.getElementById('alts');
|
||||||
|
altButtons = alts ? Array.from(alts.getElementsByTagName('input')) : [];
|
||||||
|
|
||||||
for (let button of altButtons) {
|
for (let button of altButtons) {
|
||||||
button.onchange = e => { if (button.checked) activateButton(button); };
|
button.onchange = e => { if (button.checked) activateButton(button); };
|
||||||
|
|
Loading…
Reference in a new issue