0.0.1 • Published 9 years ago

tns-conchecker v0.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

Install

tns plugin add tns-conchecker

Params

lang: object containing:

  • error: error alert title || default: 'Error'
  • noInternet: error alert message || default: 'There is no internet connection'
  • ok: ok alert button text || default: 'OK'

API

ifInternet(fn,ifNot): if there is internet run fn() else run ifNot()

onlyWithInternet(fn): run fn() only if there is internet