From 4f49a6766fdb63d9a1992891675666ca76d10760 Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Tue, 10 Mar 2020 15:21:48 +0100 Subject: [PATCH] chore(example): Fix Clipboard.read() --- example/src/pages/clipboard/clipboard.ts | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/example/src/pages/clipboard/clipboard.ts b/example/src/pages/clipboard/clipboard.ts index 76b409748..4728f5543 100644 --- a/example/src/pages/clipboard/clipboard.ts +++ b/example/src/pages/clipboard/clipboard.ts @@ -50,9 +50,7 @@ export class ClipboardPage { } async clipboardGetString() { - let str = await Plugins.Clipboard.read({ - type: "string" - }); + let str = await Plugins.Clipboard.read(); console.log('Got string from clipboard:', str.value); } @@ -63,9 +61,7 @@ export class ClipboardPage { } async clipboardGetEmptyString() { - let str = await Plugins.Clipboard.read({ - type: "string" - }); + let str = await Plugins.Clipboard.read(); console.log('Got string from clipboard:', str.value); } @@ -76,9 +72,7 @@ export class ClipboardPage { } async clipboardGetURL() { - let url = await Plugins.Clipboard.read({ - type: "url" - }); + let url = await Plugins.Clipboard.read(); console.log("Get URL from clipboard", url.value); } @@ -90,9 +84,7 @@ export class ClipboardPage { } async clipboardGetImage() { - const image = await Plugins.Clipboard.read({ - type: "image" - }); + const image = await Plugins.Clipboard.read(); console.log('Got image', image.value); } }