GithubHelp home page GithubHelp logo

Comments (4)

mafar avatar mafar commented on July 19, 2024

Yes doe not work with Edge

from custom-protocol-detection.

mafar avatar mafar commented on July 19, 2024

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>

from custom-protocol-detection.

Monkey-Island avatar Monkey-Island commented on July 19, 2024

Hi,
I'm using scripts as you describe, but edge continues not executing any protocol

from custom-protocol-detection.

catz avatar catz commented on July 19, 2024

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.

from custom-protocol-detection.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.