0

I am using this piece of Javascript to get the Clipboard content insde of a UWP App:

var content = Windows.ApplicationModel.DataTransfer.Clipboard.getContent();
var text = content.getTextAsync();

However, if I display text in my view it shows [object Object] even though the Docs say the method getTextAsync returns text.

How can I see what is inside the object, without expecting something specific?

heroxav
  • 1,387
  • 1
  • 22
  • 65

1 Answers1

1

var text = JSON.stringify(content.getTextAsync());should solve the issue.

callback
  • 3,981
  • 1
  • 31
  • 55