mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-09-12 13:10:05 +00:00
chore: revert changes in ClipboardManager
don't need it.
This commit is contained in:
parent
37c6f50b2e
commit
73d59920db
1 changed files with 1 additions and 7 deletions
|
@ -512,7 +512,7 @@ class Wireguard {
|
||||||
}
|
}
|
||||||
|
|
||||||
class ClipboardManager {
|
class ClipboardManager {
|
||||||
static copyText(content = "", hasSuccessCopyMessage = false, successCopyMessage = '') {
|
static copyText(content = "") {
|
||||||
// !! here old way of copying is used because not everyone can afford https connection
|
// !! here old way of copying is used because not everyone can afford https connection
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
try {
|
try {
|
||||||
|
@ -535,12 +535,6 @@ class ClipboardManager {
|
||||||
|
|
||||||
window.document.body.removeChild(textarea);
|
window.document.body.removeChild(textarea);
|
||||||
|
|
||||||
if (
|
|
||||||
hasSuccessCopyMessage
|
|
||||||
) {
|
|
||||||
Vue.prototype.$message['success'](successCopyMessage)
|
|
||||||
}
|
|
||||||
|
|
||||||
resolve(true)
|
resolve(true)
|
||||||
} catch {
|
} catch {
|
||||||
resolve(false)
|
resolve(false)
|
||||||
|
|
Loading…
Reference in a new issue