Skip to content

Commit

Permalink
Fix readText in clipboard. Parameter text missing.
Browse files Browse the repository at this point in the history
  • Loading branch information
McGiverGim committed Apr 11, 2024
1 parent 8786553 commit d350d62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/Clipboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ Clipboard._configureClipboardAsWeb = function() {
this.readText = function(onSuccess, onError) {

navigator.clipboard.readText().then(
() => onSuccess?.(text),
(text) => onSuccess?.(text),
onError,
);
};
Expand Down

0 comments on commit d350d62

Please sign in to comment.