mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
[CodeFactor] Apply fixes
This commit is contained in:
parent
01ae2748c8
commit
2422f1dab5
2 changed files with 6 additions and 2 deletions
|
@ -29,7 +29,9 @@ var updateAvailable = process.env.FDUpdateAvail;
|
|||
// start modemCheck modal once on startup
|
||||
onMounted(() => {
|
||||
getModemState().then();
|
||||
getVersion().then(res => {state.modem_version=res});
|
||||
getVersion().then((res) => {
|
||||
state.modem_version = res;
|
||||
});
|
||||
new Modal("#modemCheck", {}).show();
|
||||
});
|
||||
|
||||
|
|
|
@ -36,7 +36,9 @@ export async function apiPost(endpoint, payload = {}) {
|
|||
}
|
||||
|
||||
export async function getVersion() {
|
||||
let data = await apiGet("/version").then(res => {return res});
|
||||
let data = await apiGet("/version").then((res) => {
|
||||
return res;
|
||||
});
|
||||
return data.version;
|
||||
//return data["version"];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue