mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-13 11:29:53 +03:00
Firmware flasher, BLE, TCP, UDP -> Electron
This commit is contained in:
parent
2f880e218d
commit
7df8253099
36 changed files with 733 additions and 656 deletions
12
js/main.js
12
js/main.js
|
@ -11,6 +11,18 @@ const Store = require('electron-store');
|
|||
const store = new Store();
|
||||
var localization;
|
||||
|
||||
process.on('uncaughtException', function (error) {
|
||||
if (process.env.NODE_ENV !== 'development') {
|
||||
GUI.log(localization.getMessage('unexpectedError', error));
|
||||
if (GUI.connected_to || GUI.connecting_to) {
|
||||
GUI.log(localization.getMessage('disconnecting'));
|
||||
$('a.connect').trigger('click');
|
||||
}
|
||||
} else {
|
||||
throw error;
|
||||
}
|
||||
});
|
||||
|
||||
// Set how the units render on the configurator only
|
||||
const UnitType = {
|
||||
none: "none",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue