Clipboard.readText() error

Hello !

https://developer.mozilla.org/fr/docs/Web/API/Clipboard/readText

On firefox, this line of code

navigator.clipboard.readText().then(
clipText => document.getElementById(“outbox”).innerText = clipText);

-> in the console

TypeError: navigator.clipboard.readText is not a function

Why ?

A permission ?
Thanks for reponse :slight_smile:

From the browser compatibility section on the same page:

Firefox only supports reading the clipboard in browser extensions, using the "clipboardRead" extension permission.