Skip to content

Commit

Permalink
Minor patch to the permissions since bluetooth api is still
Browse files Browse the repository at this point in the history
considered experimental on Chrome/Linux implementation.
  • Loading branch information
shusain committed Jul 6, 2024
1 parent 79dc312 commit 28191a6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function createWindow() {
icon: "images/inav_icon_128.png",
webPreferences: {
nodeIntegration: true,
contextIsolation: false,
contextIsolation: false
},
});

Expand Down Expand Up @@ -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);
} else {
app.commandLine.appendSwitch("enable-web-bluetooth", true);
}

require("@electron/remote/main").enable(mainWindow.webContents);
mainWindow.removeMenu();
Expand Down

0 comments on commit 28191a6

Please sign in to comment.