mirror of
https://github.com/scratchfoundation/scratch-svg-renderer.git
synced 2024-11-14 19:25:41 -05:00
style: suppress new eslint-plugin-react error
This commit is contained in:
parent
274722c30f
commit
f8a3046f87
1 changed files with 2 additions and 0 deletions
|
@ -125,6 +125,8 @@ class BitmapAdapter {
|
|||
}
|
||||
};
|
||||
image.onerror = () => {
|
||||
// TODO: reject with an Error (breaking API change!)
|
||||
// eslint-disable-next-line prefer-promise-reject-errors
|
||||
reject('Image load failed');
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue