Handle Clipboard errors
CarlosNZ opened this issue · 0 comments
CarlosNZ commented
As discussed in #159, the navigator.clipboard can sometimes be undefined, or possibly fail for other reasons.
Will update the handleCopy function to check for the success/failure of the clipboard operation, and pass the result to the enableClipboard function, which will provide a mechanism for users to add their own clipboard handling/error reporting if required.