mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-21 09:09:01 +00:00
Don't ignore undefined variables
This commit is contained in:
parent
cc0aa9682f
commit
dfe7797c7f
2 changed files with 1 additions and 2 deletions
|
|
@ -4,7 +4,6 @@
|
|||
"camelcase": "off",
|
||||
"no-shadow": "off",
|
||||
"no-nested-ternary": "off",
|
||||
"no-undef": "off",
|
||||
"react-hooks/rules-of-hooks": "off",
|
||||
"react-hooks/exhaustive-deps": "off",
|
||||
"no-return-await": "off",
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ import Text from "./runtime/Text";
|
|||
import Status from "./runtime/Status";
|
||||
|
||||
async function loadImage(imgUrl) {
|
||||
return await new Promise(resolve => {
|
||||
return await new Promise((resolve, reject) => {
|
||||
const img = new Image();
|
||||
img.addEventListener("load", () => {
|
||||
resolve(img);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue