Skip to content

Instantly share code, notes, and snippets.

@FranciscoMarinho
Last active January 21, 2021 18:45
Show Gist options
  • Select an option

  • Save FranciscoMarinho/9a697bffc60958f284bb399b0d8ba512 to your computer and use it in GitHub Desktop.

Select an option

Save FranciscoMarinho/9a697bffc60958f284bb399b0d8ba512 to your computer and use it in GitHub Desktop.
readonly receiveUrl = 'http://localhost:4200/receiver';
readonly presentationRequest;
navigator: any;
constructor(@Inject(DOCUMENT) private document: Document) {
this.navigator = this.document.defaultView.navigator;
try {
this.presentationRequest = new PresentationRequest(this.receiveUrl);
this.navigator.defaultRequest = this.presentationRequest;
} catch {
console.log("API not suported");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment