mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-09-12 05:00: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 {
|
||||
static copyText(content = "", hasSuccessCopyMessage = false, successCopyMessage = '') {
|
||||
static copyText(content = "") {
|
||||
// !! here old way of copying is used because not everyone can afford https connection
|
||||
return new Promise((resolve) => {
|
||||
try {
|
||||
|
@ -535,12 +535,6 @@ class ClipboardManager {
|
|||
|
||||
window.document.body.removeChild(textarea);
|
||||
|
||||
if (
|
||||
hasSuccessCopyMessage
|
||||
) {
|
||||
Vue.prototype.$message['success'](successCopyMessage)
|
||||
}
|
||||
|
||||
resolve(true)
|
||||
} catch {
|
||||
resolve(false)
|
||||
|
|
Loading…
Reference in a new issue