We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 55f8746 + 77ea226 commit 40bb0d4Copy full SHA for 40bb0d4
p5js/js/electron/main.js
@@ -40,6 +40,11 @@ app.on('window-all-closed', () => {
40
app.whenReady().then(() => {
41
const win = createWindow();
42
43
+ // Allow all devices to be connected to
44
+ win.webContents.session.setDevicePermissionHandler((details) => {
45
+ return true
46
+ })
47
+
48
ipcMain.on("send-message", (event, message) => {
49
console.log(message);
50
});
@@ -48,4 +53,4 @@ app.whenReady().then(() => {
53
win.setContentSize(width, height);
54
win.show();
55
51
-});
56
+});
0 commit comments