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

add magnet link support to transmission web #2874

Merged
merged 6 commits into from May 24, 2022

Conversation

CodeWitchBella
Copy link
Contributor

@CodeWitchBella CodeWitchBella commented Apr 4, 2022

This PR implements magnet link support. Adds button to preferences which allows you to register handler. I decided to open the dialog - option to skip it can be implemented later and this felt safer.

Since browser do not have a simple way to figure out if a handler is actually registered I save it to localStorage. Also Firefox does not support unregisterProtocolHandler, but I still allow the use of the unregister button, because otherwise there would be no way to reregister the handler if user cleared it in settings...

This is another attempt at #349 and fixes #346

Also, the dialog window opening is a bit hacky, but this was only place where to open the dialog without getting an error

@Frankkkkk
Copy link

Works well in my custom build. Very useful, thanks !

@ckerr
Copy link
Member

ckerr commented Apr 29, 2022

Sorry that it's taken me so long to get back to do code review on this; I haven't forgotten about it.

@transmission transmission deleted a comment from GaryElshaw May 21, 2022
@ckerr ckerr merged commit 1cae467 into transmission:main May 24, 2022
@CodeWitchBella
Copy link
Contributor Author

Oh, nice. Thanks for merging 🙂

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

Successfully merging this pull request may close these issues.

[feature-request] Add support for clicking on magnet: links for the Web Interface
3 participants