mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-25 01:33:51 +02:00
arm64 support
This commit is contained in:
@@ -22,6 +22,7 @@ contextBridge.exposeInMainWorld('interopApi', {
|
||||
const validChannels = ['launch-command'];
|
||||
|
||||
contextBridge.exposeInMainWorld('electron', {
|
||||
getArch: () => ipcRenderer.invoke('getArch'),
|
||||
openFileDialog: () => ipcRenderer.invoke('dialog:openFile'),
|
||||
openDirectoryDialog: () => ipcRenderer.invoke('dialog:openDirectory'),
|
||||
onWindowPositionChanged: (callback) =>
|
||||
@@ -48,7 +49,6 @@ contextBridge.exposeInMainWorld('electron', {
|
||||
ipcRenderer: {
|
||||
on(channel, func) {
|
||||
if (validChannels.includes(channel)) {
|
||||
console.log('contextBridge', channel, func);
|
||||
ipcRenderer.on(channel, (event, ...args) => func(...args));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user