mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 12:26:01 +00:00
Merge branch 'master' into develop
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
export function copyTextToClipboard(text) {
|
||||
const oldFocus = document.activeElement;
|
||||
|
||||
const textArea = document.createElement('textarea');
|
||||
|
||||
//
|
||||
@@ -53,4 +55,6 @@ export function copyTextToClipboard(text) {
|
||||
}
|
||||
|
||||
document.body.removeChild(textArea);
|
||||
|
||||
if (oldFocus) oldFocus.focus();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user