fix overzealous sanity check

master
Gordon Williams 2022-12-12 11:37:19 +00:00
parent 62595c5a8f
commit aabcb62a28
1 changed files with 1 additions and 1 deletions

View File

@ -245,7 +245,7 @@ apps.forEach((app,appIdx) => {
if (!STORAGE_KEYS.includes(key)) ERROR(`App ${app.id} file ${file.name} has unknown key ${key}`, {file:appDirRelative+file.url}); if (!STORAGE_KEYS.includes(key)) ERROR(`App ${app.id} file ${file.name} has unknown key ${key}`, {file:appDirRelative+file.url});
} }
// warn if JS icon is the wrong size // warn if JS icon is the wrong size
if (file.name == app.id+".img") { if (file.name == app.id+".img" && file.evaluate) {
let icon; let icon;
let match = fileContents.match(/^\s*E\.toArrayBuffer\(atob\(\"([^"]*)\"\)\)\s*$/); let match = fileContents.match(/^\s*E\.toArrayBuffer\(atob\(\"([^"]*)\"\)\)\s*$/);
if (match==null) match = fileContents.match(/^\s*atob\(\"([^"]*)\"\)\s*$/); if (match==null) match = fileContents.match(/^\s*atob\(\"([^"]*)\"\)\s*$/);