mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-25 01:05:12 +03:00
parent
d6b57e35b4
commit
32a8e6c936
1 changed files with 12 additions and 3 deletions
|
@ -154,7 +154,11 @@ var ublox = (function () {
|
|||
|
||||
if (successCallback != null) {
|
||||
req.onload = (event) => {
|
||||
successCallback(req.response);
|
||||
if(req.status == 200) {
|
||||
successCallback(req.response);
|
||||
} else {
|
||||
failCallback(event);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -164,13 +168,18 @@ var ublox = (function () {
|
|||
}
|
||||
}
|
||||
|
||||
req.send(null);
|
||||
try {
|
||||
req.send(null);
|
||||
} catch(error) {
|
||||
GUI.alert(i18n.getMessage("gpsAssistnowLoadDataError"));
|
||||
console.log(i18n.getMessage("gpsAssistnowLoadDataError") + ':' + error.toString());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function loadError(event) {
|
||||
GUI.alert(i18n.getMessage("gpsAssistnowLoadDataError"));
|
||||
console.log(i18n.getMessage("gpsAssistnowLoadDataError") + ':' + event.toString());
|
||||
console.log(i18n.getMessage("gpsAssistnowLoadDataError") + ':' + event);
|
||||
}
|
||||
|
||||
// For more info on assistnow, check:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue