detect-private-protocol

1.1.0 • Public • Published

Detect private protocol in Browser

Usage

import detect from 'detect-private-protocol'
let pending = false
const params = {
  uri: 'skype:' + this.dest + '?chat',
  msg: __`Please install Skype application in order to send a message.`,
  fallbacks: {
    uri: 'http://www.skype.com/download-skype/skype-for-computer',
    uri_zh: 'http://skype.gmw.cn/down/skype-for-computers.html',
    android: 'market://details?id=com.skype.raider',
    ios: 'https://appstore.com/skypeforiphone',
    ipad: 'https://appstore.com/skypeforipad'
  }
}
pending = true
detect.trigger(params, () => {
  pending = false
})

Readme

Keywords

none

Package Sidebar

Install

npm i detect-private-protocol

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

80.3 kB

Total Files

7

Last publish

Collaborators

  • cutsin