mirror of
https://github.com/jonroig/MailtOWA.git
synced 2026-04-25 17:15:50 +03:00
[GH-ISSUE #6] Have you considered a custom protocol handler instead? #5
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/MailtOWA-jonroig#5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dellagustin-sap on GitHub (May 31, 2021).
Original GitHub issue: https://github.com/jonroig/MailtOWA/issues/6
Hello, thanks for this extension.
Have you considered using a custom protocol handler instead of injecting a script on every page?
Would it be a feasible option?
https://developers.google.com/web/updates/2011/06/Registering-a-custom-protocol-handler
@jonroig commented on GitHub (Aug 4, 2021):
That's.... a fair question. (Apologies for the delayed response.) It's been so long that I had to look this up and figure out why I did it this way...
In this case, it's something MS would have to do:
"The URL template supplied when registering must be of the same domain as the webpage attempting to perform the registration or the registration will fail. For example, http://example.com/homepage.html can register a protocol handler for http://example.com/handle_mailto/%s, but not for http://example.org/handle_mailto/%s."
https://developer.mozilla.org/en-US/docs/Web/API/Navigator/registerProtocolHandler/Web-based_protocol_handlers