MCPcopy Create free account
hub / github.com/dcrousso/GroupMe / getWindow

Function getWindow

modules/Menu.js:4–12  ·  view source on GitHub ↗
(callback)

Source from the content-addressed store, hash-verified

2const os = require("os");
3
4function getWindow(callback) {
5 const browser = electron.BrowserWindow.getFocusedWindow() || electron.BrowserWindow.getAllWindows()[0];
6 if (!browser)
7 return;
8
9 browser.restore();
10 if (typeof callback === "function")
11 callback(browser);
12}
13
14function sendAction(action) {
15 getWindow(browser => {

Callers 1

sendActionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected