Browse Source

unneeded offset of 1

pull/545/head
rho 3 years ago
parent
commit
d4f5156ebc
  1. 2
      assets/js/randomSite.js

2
assets/js/randomSite.js

@ -7,7 +7,7 @@ function randomSite() {
const sites = document.getElementsByClassName('site')
if (sites.length > 0) {
const choiceIndex = Math.floor(Math.random() * (sites.length - 1))
const choiceIndex = Math.floor(Math.random() * sites.length)
window.open(sites[choiceIndex].attributes.href.value, '_blank').focus()
}
}

Loading…
Cancel
Save