diff --git a/async-clipboard/demo.js b/async-clipboard/demo.js index 5115fc39f1..9d22e4e65f 100644 --- a/async-clipboard/demo.js +++ b/async-clipboard/demo.js @@ -23,8 +23,7 @@ document.querySelector('#paste').addEventListener('click', () => { /** Watch for pastes */ document.addEventListener('paste', e => { - e.preventDefault(); - navigator.clipboard.getText().then(text => { + navigator.clipboard.readText().then(text => { ChromeSamples.log('Updated clipboard contents: ' + text); }); });