1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-22 07:45:16 +03:00

Update main.js

always enable web bluetooth.
This commit is contained in:
Marcelo Bezerra 2024-08-21 23:07:08 +02:00 committed by GitHub
parent 28191a692c
commit 1026444811
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -166,10 +166,10 @@ function createWindow() {
if (process.platform === "linux"){
app.commandLine.appendSwitch("enable-experimental-web-platform-features", true);
} else {
app.commandLine.appendSwitch("enable-web-bluetooth", true);
}
app.commandLine.appendSwitch("enable-web-bluetooth", true);
require("@electron/remote/main").enable(mainWindow.webContents);
mainWindow.removeMenu();
mainWindow.setMinimumSize(800, 600);