From 332f9aefe55a7216a83725e7b9abfe92d0004cdf Mon Sep 17 00:00:00 2001 From: Leonardo Ruhland Date: Sat, 26 Aug 2017 04:55:06 -0300 Subject: [PATCH] docs(safariview): usage fix (#1923) The show method returns a Observable, not a Promise. --- src/@ionic-native/plugins/safari-view-controller/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/safari-view-controller/index.ts b/src/@ionic-native/plugins/safari-view-controller/index.ts index 1733fed76..a4eba210c 100644 --- a/src/@ionic-native/plugins/safari-view-controller/index.ts +++ b/src/@ionic-native/plugins/safari-view-controller/index.ts @@ -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');