After a user clicks to log in, a popup window is created for email verification. However, once the email is verified and the user is expected to return to the popup, the window does not come to the forefront as intended, even after invoking popupWindow.focus(). Additionally, popupWindow is logged as null in the useEffect hook, suggesting that the window reference is lost.
Steps to Reproduce
Enter your email and click on the 'Login' button to trigger the popup window.
Navigate away from the popup window to check email for verification.
Verify the email.
Expect the popup window to come into focus automatically.
After a user clicks to log in, a popup window is created for email verification. However, once the email is verified and the user is expected to return to the popup, the window does not come to the forefront as intended, even after invoking
popupWindow.focus()
. Additionally,popupWindow
is logged asnull
in theuseEffect
hook, suggesting that the window reference is lost.Steps to Reproduce
code: https://github.com/p2plabsxyz/dscan/blob/aab41097115b956fc9cfe47f633e74069da30281/src/popup.jsx#L56
https://github.com/p2plabsxyz/dscan/blob/aab41097115b956fc9cfe47f633e74069da30281/src/popup.jsx#L114