MCPcopy
hub / github.com/vercel/hyper / onWindow

Function onWindow

app/plugins.ts:343–355  ·  view source on GitHub ↗
(win: BrowserWindow)

Source from the content-addressed store, hash-verified

341};
342
343export const onWindow = (win: BrowserWindow) => {
344 modules.forEach((plugin) => {
345 if (plugin.onWindow) {
346 try {
347 plugin.onWindow(win);
348 } catch (e) {
349 notify('Plugin error!', `"${plugin._name}" has encountered an error. Check Developer Tools for details.`, {
350 error: e
351 });
352 }
353 }
354 });
355};
356
357// decorates the base entity by calling plugin[key]
358// for all the available plugins

Callers

nothing calls this directly

Calls 2

notifyFunction · 0.70
forEachMethod · 0.45

Tested by

no test coverage detected