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

open mailto links in new window/tab for gmail #453

Closed
tbar0970 opened this issue Mar 13, 2018 · 2 comments
Closed

open mailto links in new window/tab for gmail #453

tbar0970 opened this issue Mar 13, 2018 · 2 comments

Comments

@tbar0970
Copy link
Owner

Currently, if gmail is your mailto handler, then when you click a mailto link in Jethro it opens in the same window. That's fine while you're composing the email, but once the email sends you're left in a dead-end - "where has my jethro gone"?

One way to combat this would be to add target=_blank or similar to all mailto links. However this would open a new window/tab for users that don't use gmail (eg outlook, mac mail etc) and leave this blank window/tab behind.

We would need some more sophisticated solution: Perhaps open a new window with a Jethro page which prints a mailto link, clicks it with Javascript, then waits to see if the page unloads (which means the browser has naviated to gmail etc). If after 5 seconds the page is still there, that would mean that some other mailto handler has been launched and it should run window.close() or equivalent.

@vanoudt
Copy link
Contributor

vanoudt commented Mar 13, 2018 via email

@tbar0970
Copy link
Owner Author

No, I re-invented that wheel all by myself! Thanks for that discovery - my googling somehow missed that.

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

No branches or pull requests

2 participants