From: Elijah Cohen Date: Fri, 29 Jan 2021 03:11:43 +0000 (-0600) Subject: better X-Git-Url: https://git.eli173.com/?a=commitdiff_plain;h=0f91be58883b471d676d0dd084396cf60f3a0744;p=comics better --- diff --git a/comics.js b/comics.js index a029a95..9aa6340 100644 --- a/comics.js +++ b/comics.js @@ -14,6 +14,7 @@ function onload() { } function getimageurl(number) { + number = (number == "") ? 0 : number // takes the comic no (from the ?comic=<>) and gets the url we want // returns a promise? console.log(number)