Don't ignore undefined variables

This commit is contained in:
Jordan Eldredge 2019-08-18 14:20:17 -07:00
parent cc0aa9682f
commit dfe7797c7f
2 changed files with 1 additions and 2 deletions

View file

@ -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",

View file

@ -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);