mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-31 18:49:43 +08:00
docs(safariview): usage fix (#1923)
The show method returns a Observable, not a Promise.
This commit is contained in:
parent
4942b88873
commit
332f9aefe5
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user