GithubHelp home page GithubHelp logo

Comments (7)

vladimirtsyupko avatar vladimirtsyupko commented on July 19, 2024 1

Here's my gist for this
https://gist.github.com/vladimirtsyupko/cfcd332476b16683bb0b

from custom-protocol-detection.

vladimirtsyupko avatar vladimirtsyupko commented on July 19, 2024 1

@ismailhabib , @sraimund yes, going to do it when I have some free time!

from custom-protocol-detection.

ismailhabib avatar ismailhabib commented on July 19, 2024

Unfortunately this is technically not possible since most of the browsers don't support it.

from custom-protocol-detection.

sraimund avatar sraimund commented on July 19, 2024

It does not need to be supported by the browser, but it could be implemented in your code when the failCb is not called, which means that the protocol seems to be recognized successfully. The successCb may occur in some cases after a certain timeout. I was thinking about something similar to this code: https://gist.github.com/rajeshsegu/3716941

from custom-protocol-detection.

ismailhabib avatar ismailhabib commented on July 19, 2024

Can you create a pull request for this?

from custom-protocol-detection.

sraimund avatar sraimund commented on July 19, 2024

Thanks @vladimirtsyupko!

While testing however, I noticed that you forgot successCb in the openUriUsingIEInOlderWindows function.

Also to ensure backwards compatibility, it might be better to have the argument failCb before successCb in the protocolCheck function. What do you think about this, @ismailhabib?

from custom-protocol-detection.

ismailhabib avatar ismailhabib commented on July 19, 2024

@sraimund: while backward compatibility is good, I think at this moment I won't be too worried about it. A proper versioning and documentation should be enough.

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.