![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@el3um4s/ipc-for-electron-window-controls
Advanced tools
Allow the renderer to close, minimize and maximize the window (for desktop Electron)
Allow the renderer to close, minimize and maximize the window (for desktop Electron)
NPM link: @el3um4s/ipc-for-electron-window-controls
Use @el3um4s/ipc-for-electron and @el3um4s/renderer-for-electron-window-controls to allow communication between Electron and a web page
To use the package in a project:
npm i @el3um4s/ipc-for-electron @el3um4s/ipc-for-electron-window-controls @el3um4s/renderer-for-electron-window-controls
Then the preload.ts
file:
import { generateContextBridge } from "@el3um4s/ipc-for-electron";
import windowControls from "@el3um4s/ipc-for-electron-window-controls";
const listAPI = [windowControls];
generateContextBridge(windowControls);
In the renderer file:
import windowControls from "@el3um4s/renderer-for-electron-window-controls";
windowControls.minimize();
windowControls.maximize();
windowControls.unmaximize();
windowControls.close();
In the renderer you can use:
globalThis.ipc.windowControls.send("minimize", null);
globalThis.ipc.windowControls.send("maximize", null);
globalThis.ipc.windowControls.send("unmaximize", null);
globalThis.ipc.windowControls.send("close", null);
minimize
- Minimize the windowmaximize
- Maximize the windowunmaximize
- Unmaximize the windowclose
- Close the windowminimize = (options: { apiKey?: string }): void
example:
import windowControls from "@el3um4s/renderer-for-electron-window-controls";
windowControls.minimize();
maximize = (options: { apiKey?: string }): void
example:
import windowControls from "@el3um4s/renderer-for-electron-window-controls";
windowControls.maximize({ apiKey: "my-api-key" });
unmaximize = (options: { apiKey?: string }): void
example:
import windowControls from "@el3um4s/renderer-for-electron-window-controls";
windowControls.unmaximize();
close = (options: { apiKey?: string }): void
example:
import windowControls from "@el3um4s/renderer-for-electron-window-controls";
windowControls.close();
DefaultApiKey
type DefaultApiKey = "ipc";
FAQs
Allow the renderer to close, minimize and maximize the window (for desktop Electron)
We found that @el3um4s/ipc-for-electron-window-controls demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.