mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 06:43:51 +02:00
Lint
This commit is contained in:
@@ -19,9 +19,7 @@ contextBridge.exposeInMainWorld('interopApi', {
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
const validChannels = ['launch-command']
|
||||
|
||||
const validChannels = ['launch-command'];
|
||||
|
||||
contextBridge.exposeInMainWorld('electron', {
|
||||
openFileDialog: () => ipcRenderer.invoke('dialog:openFile'),
|
||||
@@ -35,17 +33,24 @@ contextBridge.exposeInMainWorld('electron', {
|
||||
desktopNotification: (title, body, icon) =>
|
||||
ipcRenderer.invoke('notification:showNotification', title, body, icon),
|
||||
restartApp: () => ipcRenderer.invoke('app:restart'),
|
||||
getWristOverlayWindow: () => ipcRenderer.invoke('app:getWristOverlayWindow'),
|
||||
getWristOverlayWindow: () =>
|
||||
ipcRenderer.invoke('app:getWristOverlayWindow'),
|
||||
getHmdOverlayWindow: () => ipcRenderer.invoke('app:getHmdOverlayWindow'),
|
||||
updateVr: (active, hmdOverlay, wristOverlay, menuButton, overlayHand) =>
|
||||
ipcRenderer.invoke('app:updateVr', active, hmdOverlay, wristOverlay, menuButton, overlayHand),
|
||||
|
||||
ipcRenderer.invoke(
|
||||
'app:updateVr',
|
||||
active,
|
||||
hmdOverlay,
|
||||
wristOverlay,
|
||||
menuButton,
|
||||
overlayHand
|
||||
),
|
||||
ipcRenderer: {
|
||||
on(channel, func) {
|
||||
if (validChannels.includes(channel)) {
|
||||
console.log("contextBridge", channel, func)
|
||||
console.log('contextBridge', channel, func);
|
||||
ipcRenderer.on(channel, (event, ...args) => func(...args));
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user