Browse Source

Don't blow up if no recordings are there

main
Luke Murphy 5 years ago
parent
commit
6562f9a56a
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 1
      voicegardens/static/voicegardens.js

1
voicegardens/static/voicegardens.js

@ -126,6 +126,7 @@ function gardenShapes() {
axios axios
.get(archiveListingUrl) .get(archiveListingUrl)
.then(function(response) { .then(function(response) {
if (!response.data.length) return;
let randomIndex = floor(random(0, response.data.length - 1)); let randomIndex = floor(random(0, response.data.length - 1));
let url = response.data[randomIndex]; let url = response.data[randomIndex];
axios axios

Loading…
Cancel
Save