Run "make fmt"
This commit is contained in:
parent
28c5c1be7b
commit
3280ab38e9
1 changed files with 6 additions and 6 deletions
|
@ -173,17 +173,17 @@ export default class Util {
|
|||
clipboardElement.select();
|
||||
|
||||
// Copy the selected textarea content
|
||||
const succeed = document.execCommand('copy');
|
||||
const succeed = document.execCommand("copy");
|
||||
|
||||
// Remove the textarea from DOM
|
||||
document.body.removeChild(clipboardElement);
|
||||
|
||||
// Validate operation succeed
|
||||
if (!succeed) {
|
||||
throw new Error('Failed copying to clipboard');
|
||||
throw new Error("Failed copying to clipboard");
|
||||
}
|
||||
} else {
|
||||
throw new Error('Copy to clipboard does not support in your browser');
|
||||
throw new Error("Copy to clipboard does not support in your browser");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue