Copy to clipboard

Hello

I wanted the script of a button to copy some var to the clipboard to use outside of OSC so I genuinely tried :
navigator.clipboard.writeText(txt)
... and this seems to break OSC. :cry:

Still, can it be done ?

The navigator object is not exposed, hence the error.

Oh wait with the built-in client the navigator global variable does cause a crash ! Ok then, I'll expose it to prevent that.

1 Like

It's exposed as globals.navigator globals.clipboard in v1.9.1.

1 Like