In google chrome there is function/constructor Clipboard what is used for? (it show up if you run console.dir(window)
).
When I try to call that function
Clipboard();
it say that:
TypeError: Illegal constructor
the same if I try to create new instance
new Clipboard();
According to the spec, Clipboard
is supposed to be an interface implemented by navigator.clipboard
. You can’t create a Clipboard
by hand; you must use navigator.clipboard
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With