Skip to content

Commit

Permalink
docs(safariview): usage fix (#1923)
Browse files Browse the repository at this point in the history
The show method returns a Observable, not a Promise.
  • Loading branch information
leoruhland authored and ihadeed committed Aug 26, 2017
1 parent 4942b88 commit 332f9ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/@ionic-native/plugins/safari-view-controller/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export interface SafariViewControllerOptions {
* enterReaderModeIfAvailable: true,
* tintColor: '#ff0000'
* })
* .then((result: any) => {
* .subscribe((result: any) => {
* if(result.event === 'opened') console.log('Opened');
* else if(result.event === 'loaded') console.log('Loaded');
* else if(result.event === 'closed') console.log('Closed');
Expand Down

0 comments on commit 332f9ae

Please sign in to comment.