mirror of
https://github.com/gnmyt/myspeed.git
synced 2026-05-04 02:50:53 -05:00
Updated fallback message on new installations
This commit is contained in:
@@ -58,7 +58,11 @@ const requestInterfaces = async () => {
|
||||
const currentInterface = await config.getValue("interface");
|
||||
|
||||
if (!usableInterfaces[currentInterface]) {
|
||||
console.warn(`Interface ${currentInterface} not found. Falling back to default.`);
|
||||
if (!currentInterface) {
|
||||
console.warn("No interface set. Falling back to default.");
|
||||
} else {
|
||||
console.warn(`Interface ${currentInterface} not found. Falling back to default.`);
|
||||
}
|
||||
await config.updateValue("interface", Object.keys(usableInterfaces)[0]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user