mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-05 22:36:05 +02:00
VRC status checking
This commit is contained in:
@@ -396,6 +396,10 @@ function createWindow() {
|
||||
mainWindow.on('restore', () => {
|
||||
mainWindow.webContents.send('setWindowState', '0');
|
||||
});
|
||||
|
||||
mainWindow.on('focus', () => {
|
||||
mainWindow.webContents.send('onBrowserFocus');
|
||||
});
|
||||
}
|
||||
|
||||
let wristOverlayWindow = undefined;
|
||||
|
||||
@@ -31,6 +31,7 @@ contextBridge.exposeInMainWorld('electron', {
|
||||
ipcRenderer.on('setWindowSize', callback),
|
||||
onWindowStateChange: (callback) =>
|
||||
ipcRenderer.on('setWindowState', callback),
|
||||
onBrowserFocus: (callback) => ipcRenderer.on('onBrowserFocus', callback),
|
||||
desktopNotification: (title, body, icon) =>
|
||||
ipcRenderer.invoke('notification:showNotification', title, body, icon),
|
||||
restartApp: () => ipcRenderer.invoke('app:restart'),
|
||||
|
||||
Reference in New Issue
Block a user