1

I have an Electron app which kind of wraps a web URL and renders it. During the course of user action the user traverses through this app to different page. I would like to see if the user is on the default page or any other page. I tried using BrowserWindow.webContents.getURL() as mentioned in this answer but it doesn't return the correct URL. Is there any way I can track the active page which the user is seeing through this Electron app?

snwflk
  • 3,341
  • 4
  • 25
  • 37
Rajesh Kumar Dash
  • 2,203
  • 6
  • 28
  • 57
  • 1
    You say that you don't get the correct URL. That can be anything. What output exactly are you getting? We need some more information to be able to help you. Please [edit] the question to include further details. – snwflk Sep 09 '20 at 19:47
  • I always get the intial URL .SO for example if i opeen google.com I always get the same – Rajesh Kumar Dash Sep 11 '20 at 12:15

0 Answers0