Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

powers bookmarklet should open in same tab #252

Open
Trevor-van-L opened this issue May 9, 2023 · 1 comment
Open

powers bookmarklet should open in same tab #252

Trevor-van-L opened this issue May 9, 2023 · 1 comment

Comments

@Trevor-van-L
Copy link
Contributor

CRE manages to do this. Having 50 tabs opened is a hassle. Would be good to update existing tab automatically

@Trevor-van-L
Copy link
Contributor Author

BLUF: Is there an onfocus() or something similar to onload() that we can use to call loaddata() and still use the window.name property? Else we will have to look at another way to pass the data.

window.open() takes optional second param of window name. We could use this, except that window.name gets hijacked to pass data, which is only read in onload(). Name does get reset after we have loaded it.

There is a comment saying this is for passing the data across origins. I am not entirely familiar with the mechanics at play here but I guess it means we can't call loaddata() from our original entry point on the MH tab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant