Merge pull request #2138 from shusain/fixing-bluetooth-on-linux

Minor patch to the permissions since bluetooth api is still
pull/2177/head
Marcelo Bezerra 1 month ago committed by GitHub
commit 8ea40f1399
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -72,7 +72,7 @@ function createWindow() {
icon: "images/inav_icon_128.png",
webPreferences: {
nodeIntegration: true,
contextIsolation: false,
contextIsolation: false
},
});
@ -163,6 +163,12 @@ function createWindow() {
});
app.commandLine.appendSwitch('disable-features', 'OutOfBlinkCors')
if (process.platform === "linux"){
app.commandLine.appendSwitch("enable-experimental-web-platform-features", true);
}
app.commandLine.appendSwitch("enable-web-bluetooth", true);
require("@electron/remote/main").enable(mainWindow.webContents);
mainWindow.removeMenu();
@ -191,4 +197,4 @@ app.on('activate', () => {
if (BrowserWindow.getAllWindows().length === 0) {
createWindow();
}
});
});

Loading…
Cancel
Save