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

109
Views
Cargando pantalla en window.open via electron

Quería mostrar la pantalla de carga en electron js cuando window.open está abriendo alguna url.

ejemplo: window.open("https://example.com");

 window.webContents.on("new-window", (event, url) => { // there are more args not used here event.preventDefault(); loading = new BrowserWindow({ width: 300, height: 300, transparent: true, frame: false, alwaysOnTop: true }); loading.loadURL(`file://${__dirname}/splash.html`); const win = new BrowserWindow({ show: false, width: 1200, height: 1000 }); win.webContents.once("dom-ready", () => { win.show(); loading.hide(); // don't destroy in this case }); win.loadURL(url); loading.show(); event.newGuest = win; });

Intenté el código anterior y funciona bien, excepto que algunos sitios están perdiendo cookies/sesión cuando se abre una ventana emergente a través de una nueva ventana del navegador... ¿puedo obtener una devolución de llamada lista para dom en window.open() directamente... para poder ocultar mi carga? pantalla...

básicamente solo quiero abrir ventanas para abrir ventanas normalmente y quiero que se muestre la pantalla de carga hasta que se carguen las páginas

 const win = new BrowserWindow({ show: false, width: 1200, height: 1000 });
about 4 years ago · Santiago Gelvez
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!