Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- navigator.clipboard.readText()
- .then(texto => {
- console.log("Aquí tenemos el texto: ", texto);
- })
- .catch(error => {
- // Por si el usuario no da permiso u ocurre un error
- console.log("Hubo un error: ", error);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement