Yahoo Search Búsqueda en la Web

Resultado de búsqueda

  1. The contextBridge module has the following methods: contextBridge.exposeInMainWorld(apiKey, api) apiKey string - The key to inject the API onto window with. The API will be accessible on window[apiKey]. api any - Your API, more information on what this API can be and how it works is available below.

  2. Métodos. El módulo contextBridge tiene los siguientes métodos: contextBridge.exposeInMainWorld(apiKey, api) apiKey string - La clave para inyectar la API en la ventana window. La API será accesible en window[apiKey]. api any - Tu API más información sobre qué puede ser esta API y como funciona esta disponible a continuación.

  3. 11 de feb. de 2021 · Asked 3 years, 3 months ago. Modified 8 months ago. Viewed 14k times. 9. I defined contextBridge ( https://www.electronjs.org/docs/all#contextbridge ) in preload.js as follows: const { contextBridge, ipcRenderer. } = require("electron") contextBridge.exposeInMainWorld( "api", { send: (channel, data) => {

  4. El objeto contextBridge que nos ofrece Electrón es el responsable de hacer de puente, enviando información a la página web que se ejecuta en la ventana, así como recibiendo órdenes para ejecutar funcionalidades incorporadas. Para acceder a este objeto hacemos el siguiente require: const { contextBridge } = require('electron');

  5. const { contextBridge } = require ('electron') contextBridge. exposeInMainWorld ( 'electron', { doThing: () => ipcRenderer. send ('do-a-thing'), myPromises: [Promise. resolve (), Promise. reject (new Error ('whoops'))], anAsyncFunction: async => 123, data: { myFlags: ['a', 'b', 'c'], bootTime: 1234}, nestedAPI: { evenDeeper ...

  6. Methods. The contextBridge module has the following methods: contextBridge.exposeInMainWorld(apiKey, api) apiKey String - The key to inject the API onto window with. The API will be accessible on window[apiKey]. api any - Your API, more information on what this API can be and how it works is available below. Usage. API.

  7. The contextBridge module has the following methods: contextBridge.exposeInMainWorld(apiKey, api) apiKey string - The key to inject the API onto window with. The API will be accessible on window[apiKey]. api any - Your API, more information on what this API can be and how it works is available below.