Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

258
Views
¿Hay alguna manera de llamar a una función en contextBridge, que no se leerá en renderer.js, desde main.js en electron?

Espero que estés teniendo un buen día. Me preguntaba si había una forma de llamar a una función regular en contextBridge en preload.js desde main.js que renderer.js no leerá. Por ejemplo, cuando desee llamar a una función regular en contextBridge, sin tener que usar ipcRenderer, simplemente haga window.preloader.functionName() en renderer.js .

Quiero hacer exactamente lo mismo, excepto en main.js. He intentado hacer win.webContents.functionName(); en main.js , sin embargo, recibo el error TypeError: Cannot read properties of undefined (reading 'functionName')

¡Por favor, avíseme si tiene una solución! Gracias.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!