Skip to content

Commit

Permalink
FIX: delete dataset doesn’t work on safari
Browse files Browse the repository at this point in the history
  • Loading branch information
jjaffeux authored and SamSaffron committed Dec 27, 2018
1 parent 8ce7646 commit 695894d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -24,7 +24,7 @@ function hide(image) {
image.removeAttribute("srcset");

image.src = image.dataset.smallUpload || LOADING_DATA;
delete image.dataset.smallUpload;
image.removeAttribute("data-small-upload");
}

// Restore an image when onscreen
Expand Down

0 comments on commit 695894d

Please sign in to comment.