Skip to content

Commit 77ea226

Browse files
committed
Allow all devices to be connected to
1 parent 55f8746 commit 77ea226

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

p5js/js/electron/main.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ app.on('window-all-closed', () => {
4040
app.whenReady().then(() => {
4141
const win = createWindow();
4242

43+
// Allow all devices to be connected to
44+
win.webContents.session.setDevicePermissionHandler((details) => {
45+
return true
46+
})
47+
4348
ipcMain.on("send-message", (event, message) => {
4449
console.log(message);
4550
});
@@ -48,4 +53,4 @@ app.whenReady().then(() => {
4853
win.setContentSize(width, height);
4954
win.show();
5055
});
51-
});
56+
});

0 commit comments

Comments
 (0)