mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
add 'dev' label to application. also add 'un-magnify' icon when magnified
This commit is contained in:
@@ -525,6 +525,9 @@ function ensureBoundsAreVisible(bounds: electron.Rectangle): electron.Rectangle
|
||||
return bounds;
|
||||
}
|
||||
|
||||
electron.ipcMain.on("getIsDev", (event) => {
|
||||
event.returnValue = isDev;
|
||||
});
|
||||
electron.ipcMain.on("getPlatform", (event, url) => {
|
||||
event.returnValue = unamePlatform;
|
||||
});
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
const { contextBridge, ipcRenderer } = require("electron");
|
||||
|
||||
contextBridge.exposeInMainWorld("api", {
|
||||
getIsDev: () => ipcRenderer.sendSync("getIsDev"),
|
||||
getPlatform: () => ipcRenderer.sendSync("getPlatform"),
|
||||
getCursorPoint: () => ipcRenderer.sendSync("getCursorPoint"),
|
||||
openNewWindow: () => ipcRenderer.send("openNewWindow"),
|
||||
|
||||
Reference in New Issue
Block a user