aboutsummaryrefslogtreecommitdiff
path: root/dist/script.js
diff options
context:
space:
mode:
Diffstat (limited to 'dist/script.js')
-rw-r--r--dist/script.js5
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);