simplest cross-browser check if protocol handler is registered

后端 未结 5 1419
青春惊慌失措
青春惊慌失措 2020-12-02 14:47

When user clicks link with custom protocol (like myapp://superlink)

I need either launch an app or allow user to download and run configuration app

5条回答
  •  暖寄归人
    2020-12-02 14:59

    Salaam

    Install ismailhabib/custom-protocol-detection

    By including this JS file protocolcheck.js

    Then write code something like this

    Check Protocol

提交回复
热议问题