mirror of https://github.com/espruino/BangleApps
remove undefined filter warning
parent
017643f452
commit
4c51cd29d8
|
@ -107,6 +107,7 @@ function filterAppsForDevice(deviceId) {
|
||||||
// set the device dropdown
|
// set the device dropdown
|
||||||
document.querySelector(".devicetype-nav span").innerText = device ? device.name : "All apps";
|
document.querySelector(".devicetype-nav span").innerText = device ? device.name : "All apps";
|
||||||
|
|
||||||
|
if (originalAppJSON) { // JSON might not have loaded yet
|
||||||
if (!device) {
|
if (!device) {
|
||||||
if (deviceId!==undefined)
|
if (deviceId!==undefined)
|
||||||
showToast(`Device ID ${deviceId} not recognised. Some apps may not work`, "warning");
|
showToast(`Device ID ${deviceId} not recognised. Some apps may not work`, "warning");
|
||||||
|
@ -124,6 +125,7 @@ function filterAppsForDevice(deviceId) {
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
refreshLibrary();
|
refreshLibrary();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue