Function runJS

  • 122,130d33 Run some JavaScript in the active or given window.

    Parameters

    • code: string

      JavaScript code to be executed.

    • Optional web: any

      Default: webContents from current window.

    Returns Promise<void>

    A promise for the result of the executed code or a rejected promise if the result is a rejected promise.