1.1.0 • Published 5 years ago

detect-private-protocol v1.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

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
})
1.1.0

5 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.1.0

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago