]> git.eli173.com Git - comics/commitdiff
better
authorElijah Cohen <eli@eli173.com>
Fri, 29 Jan 2021 03:11:43 +0000 (21:11 -0600)
committerElijah Cohen <eli@eli173.com>
Fri, 29 Jan 2021 03:11:43 +0000 (21:11 -0600)
comics.js

index a029a95e5a8a86f292d3861cc1872bc36b213328..9aa63400df136da9b77cc6f1da4ffeed4ae2f7b2 100644 (file)
--- 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)