Skip to content

Commit

Permalink
@uppy/dashboard: change copyToClipboard signature (#3933)
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Aug 1, 2022
1 parent 5271d27 commit 9190ed5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/@uppy/dashboard/src/utils/copyToClipboard.js
Expand Up @@ -8,10 +8,7 @@
* @param {string} fallbackString
* @returns {Promise}
*/
export default function copyToClipboard (textToCopy, fallbackString) {
// TODO: make `fallbackString` an optional parameter instead.
fallbackString ||= 'Copy the URL below' // eslint-disable-line no-param-reassign

export default function copyToClipboard (textToCopy, fallbackString = 'Copy the URL below') {
return new Promise((resolve) => {
const textArea = document.createElement('textarea')
textArea.setAttribute('style', {
Expand Down

0 comments on commit 9190ed5

Please sign in to comment.