diff options
author | Melody Horn <melody@boringcactus.com> | 2020-06-03 15:08:20 -0600 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2020-06-03 15:08:20 -0600 |
commit | 558a6836ebe9b9e348ac67bdde244cb0c2eff81f (patch) | |
tree | c765d3ed60da1d7a515be55d67a4dd81f1f5daa6 /dist/script.js | |
parent | 7a6d8d19b5c2951cbf713f59b558fb4847a65bfc (diff) | |
download | pig.observer-558a6836ebe9b9e348ac67bdde244cb0c2eff81f.tar.gz pig.observer-558a6836ebe9b9e348ac67bdde244cb0c2eff81f.zip |
add new york city
Diffstat (limited to 'dist/script.js')
-rw-r--r-- | dist/script.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dist/script.js b/dist/script.js index 2141196..5a9ff2f 100644 --- a/dist/script.js +++ b/dist/script.js @@ -277,9 +277,10 @@ function pokeImages() { fetch(img.dataset.origSrc, {cache: "no-cache"}) .then(function (response) { if (!response.ok) { - throw new Error(`HTTP error! status: ${response.status}`); + console.error(`HTTP error! status: ${response.status}`); + } else { + return response.blob(); } - return response.blob(); }) .then(function (response) { img.src = URL.createObjectURL(response); |