Reputation: 683
I want to determine if a browser is able to create a new ClipBoardItem
in Javascript.
The following if condition is sometimes true and sometimes false in Google Chrome so it doesn't work in my case:
if(typeof ClipBoardItem !== "undefined") {
// new ClipBoardItem()
}
Upvotes: 0
Views: 717
Reputation: 128
Is it ClipboardItem instead of ClipBoardItem, because typeof ClipboardItem is giving me correct results.
Upvotes: 1