mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 14:57:39 -02:30
Remove try/catch block of copyRevisionHash()
This commit is contained in:
@@ -38,18 +38,10 @@ export default
|
||||
textArea.style.background = 'transparent';
|
||||
|
||||
textArea.value = full_revision;
|
||||
|
||||
document.body.appendChild(textArea);
|
||||
|
||||
textArea.select();
|
||||
|
||||
try {
|
||||
var successful = document.execCommand('copy');
|
||||
var msg = successful ? 'successful' : 'unsuccessful';
|
||||
console.log('Copying text command was ' + msg);
|
||||
} catch (err) {
|
||||
console.log('Oops, unable to copy');
|
||||
}
|
||||
document.execCommand('copy');
|
||||
|
||||
document.body.removeChild(textArea);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user