FIX: delete dataset doesn’t work on safari

This commit is contained in:
Joffrey JAFFEUX 2018-12-27 01:20:42 +01:00 committed by Sam
parent 8ce76460ed
commit 695894d458
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ function hide(image) {
image.removeAttribute("srcset"); image.removeAttribute("srcset");
image.src = image.dataset.smallUpload || LOADING_DATA; image.src = image.dataset.smallUpload || LOADING_DATA;
delete image.dataset.smallUpload; image.removeAttribute("data-small-upload");
} }
// Restore an image when onscreen // Restore an image when onscreen