Skip to content

Commit

Permalink
chore(example): Fix Clipboard.read() (#2546)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Mar 10, 2020
1 parent 9610570 commit 6b88ba8
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions example/src/pages/clipboard/clipboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand All @@ -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);
}

Expand All @@ -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);
}

Expand All @@ -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);
}
}

0 comments on commit 6b88ba8

Please sign in to comment.