Skip to content

Instantly share code, notes, and snippets.

@FranciscoMarinho
Created January 21, 2021 19:07
Show Gist options
  • Select an option

  • Save FranciscoMarinho/43a39086c032102d7d0f2cd4b7a61708 to your computer and use it in GitHub Desktop.

Select an option

Save FranciscoMarinho/43a39086c032102d7d0f2cd4b7a61708 to your computer and use it in GitHub Desktop.
if (this.navigator.defaultRequest) {
this.navigator.defaultRequest.getAvailability().then((availability: any) => {
if(availability){
this.buttonDisabled = availability.value
}
}).catch(error => {
console.log('error ' + error.name + ': ' + error.message);
this.buttonDisabled = true;
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment