mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-23 00:05:19 +03:00
Update main.js
always enable web bluetooth.
This commit is contained in:
parent
28191a692c
commit
1026444811
1 changed files with 3 additions and 3 deletions
|
@ -166,10 +166,10 @@ function createWindow() {
|
||||||
|
|
||||||
if (process.platform === "linux"){
|
if (process.platform === "linux"){
|
||||||
app.commandLine.appendSwitch("enable-experimental-web-platform-features", true);
|
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);
|
require("@electron/remote/main").enable(mainWindow.webContents);
|
||||||
mainWindow.removeMenu();
|
mainWindow.removeMenu();
|
||||||
mainWindow.setMinimumSize(800, 600);
|
mainWindow.setMinimumSize(800, 600);
|
||||||
|
@ -197,4 +197,4 @@ app.on('activate', () => {
|
||||||
if (BrowserWindow.getAllWindows().length === 0) {
|
if (BrowserWindow.getAllWindows().length === 0) {
|
||||||
createWindow();
|
createWindow();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue