chore: Remove setimmediate polyfill (#4903)
* Add setimmediate to dependencies * Remove use of setimmediate
This commit is contained in:
@@ -53,7 +53,7 @@ class ImageUpload extends React.Component<RootStore & Props> {
|
||||
this.isUploading = true;
|
||||
// allow the UI to update before converting the canvas to a Blob
|
||||
// for large images this can cause the page rendering to hang.
|
||||
setImmediate(this.uploadImage);
|
||||
setTimeout(this.uploadImage, 0);
|
||||
};
|
||||
|
||||
uploadImage = async () => {
|
||||
|
||||
Reference in New Issue
Block a user