mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: delete dataset doesn’t work on safari
This commit is contained in:
parent
8ce76460ed
commit
695894d458
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user