custom-protocol-detection
custom-protocol-detection copied to clipboard
Protocol detection in Edge in Windows 10 doesn't work
Hi Probably need a special registration of the new protocol in the register of Windows?
Yes doe not work with Edge
Ok i figured it out. It works with edge. But Edge has problem loading local resources.
Changing <script src="protocolcheck.js">
to <script src="https://gitcdn.xyz/repo/ismailhabib/custom-protocol-detection/master/protocolcheck.js">
and rest similar works.
I would strongly suggest to make CDN for this repo and that example uses those cdn links to test it cross browser.
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>Custom Protocol Detection</title>
</head>
<body>
<h1>Click one of these labels:</h1>
<div href="blahblah:randomstuff">Non-exist protocol
</div>
<div href="mailto:[email protected]">Send email
</div>
<script src="https://code.jquery.com/jquery-1.11.2.min.js"></script>
<script src="https://gitcdn.xyz/repo/ismailhabib/custom-protocol-detection/master/protocolcheck.js"></script>
<script src="https://gitcdn.xyz/repo/ismailhabib/custom-protocol-detection/master/example.js"></script>
</body>
</html>
Hi, I'm using scripts as you describe, but edge continues not executing any protocol
Hi, navigator.msLaunchUri detection approach is very buggy. You can't rely on it. (callbacks do not fire at all sometimes) bug FYI // https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/7181860/
I haven't found any reliable methods for detection for IE11/Edge at the moment.