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

259
Views
Get every URL of Electron Webview to do an action

I'm new on JS. I'm developing a Webview that opens an specific URL. How can I do an action when a specific URL is detected?. I should download a pdf from the URL that is detected. I tried with the the function win.webContents.getURL() but it only showed me the URL of the webpage I want to show.

Thanks!

const { app, BrowserWindow } = require('electron')

const createWindow = () => {
    const win = new BrowserWindow({
      width: 1024,
      height: 1024
    })
  
    win.loadURL('https://google.com/')
  }

app.whenReady().then(() => {
    createWindow()
})

app.on('did-finish-load', () => {
    console.log('finished to load ');
 })

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!