mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-13 11:29:53 +03:00
Convert to CommonJS Modules Part 3
This commit is contained in:
parent
ca13eefa1b
commit
06a4d8b0c8
74 changed files with 1949 additions and 10259 deletions
|
@ -21,7 +21,7 @@ let bluetoothDeviceChooser = null;
|
|||
let btDeviceList = null;
|
||||
let selectBluetoothCallback = null;
|
||||
|
||||
// In Eletrcon the bluetooth device chooser didn't exist, so we have to build our own
|
||||
// In Electron the bluetooth device chooser didn't exist, so we have to build our own
|
||||
function createDeviceChooser() {
|
||||
bluetoothDeviceChooser = new BrowserWindow({
|
||||
parent: mainWindow,
|
||||
|
@ -69,7 +69,6 @@ app.on('ready', () => {
|
|||
webPreferences: {
|
||||
nodeIntegration: true,
|
||||
contextIsolation: false,
|
||||
webSecurity: false
|
||||
},
|
||||
});
|
||||
|
||||
|
@ -124,7 +123,7 @@ app.on('ready', () => {
|
|||
if (details.deviceType === 'usb' && details.origin === 'file://') {
|
||||
return true;
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
mainWindow.webContents.setWindowOpenHandler(({ url }) => {
|
||||
return {
|
||||
|
@ -140,7 +139,6 @@ app.on('ready', () => {
|
|||
require("@electron/remote/main").enable(mainWindow.webContents);
|
||||
mainWindow.removeMenu();
|
||||
mainWindow.setMinimumSize(800, 600);
|
||||
|
||||
mainWindow.loadFile('./index.html');
|
||||
|
||||
mainWindowState.manage(mainWindow);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue