electron-util
Version:
Useful utilities for Electron apps and modules
10 lines (8 loc) • 406 B
TypeScript
/**
122,130d33
Run some JavaScript in the active or given window.
@param code - JavaScript code to be executed.
@param web - Default: webContents from current window.
@returns A promise for the result of the executed code or a rejected promise if the result is a rejected promise.
*/
export declare const runJS: (code: string, web?: Electron.WebContents | Electron.WebFrame | undefined) => Promise<void>;