From 0f91be58883b471d676d0dd084396cf60f3a0744 Mon Sep 17 00:00:00 2001 From: Elijah Cohen Date: Thu, 28 Jan 2021 21:11:43 -0600 Subject: [PATCH] better --- comics.js | 1 + 1 file changed, 1 insertion(+) 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) -- 2.39.2