From 09455398c59b24aced5b781e8a86792eab5c0e4d Mon Sep 17 00:00:00 2001 From: Paul Spooren Date: Wed, 29 Mar 2023 00:49:43 +0200 Subject: [PATCH] upgradePage: support .itb files The popular Belkin 3200 uses .itb, support them. Signed-off-by: Paul Spooren --- plugins/lime-plugin-firmware/src/upgradePage/upgradePage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/lime-plugin-firmware/src/upgradePage/upgradePage.js b/plugins/lime-plugin-firmware/src/upgradePage/upgradePage.js index 3db4b491..19f05d79 100644 --- a/plugins/lime-plugin-firmware/src/upgradePage/upgradePage.js +++ b/plugins/lime-plugin-firmware/src/upgradePage/upgradePage.js @@ -170,7 +170,7 @@ export const UpgradeFromFile = ({ onUpgrading, onSwitch }) => { function isValidExtname(value) { const extname = path.extname(value[0].name); - return extname === ".sh" || extname === ".bin"; + return extname === ".sh" || extname === ".bin" || extname === ".itb"; } return ( @@ -217,7 +217,7 @@ export const UpgradeFromFile = ({ onUpgrading, onSwitch }) => { )} {errors.file && errors.file.type === "validExtname" && (

- Please select a .sh or .bin file + Please select a .sh, .bin or .itb file

)}