add 'dev' label to application. also add 'un-magnify' icon when magnified

This commit is contained in:
sawka
2024-08-01 13:46:06 -07:00
parent 9f98d03add
commit c8cc1de2d4
8 changed files with 66 additions and 3 deletions
+3
View File
@@ -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;
});
+1
View File
@@ -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"),