diff --git a/src/js/Clipboard.js b/src/js/Clipboard.js index 5a2c5510000..7e6723151bb 100644 --- a/src/js/Clipboard.js +++ b/src/js/Clipboard.js @@ -95,7 +95,7 @@ Clipboard._configureClipboardAsWeb = function() { this.readText = function(onSuccess, onError) { navigator.clipboard.readText().then( - () => onSuccess?.(text), + (text) => onSuccess?.(text), onError, ); };