never mind fuck the fallback just use https
This commit is contained in:
@@ -92,28 +92,11 @@
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
copyConfirmationText() {
|
copyConfirmationText() {
|
||||||
if (navigator.clipboard && window.isSecureContext) {
|
navigator.clipboard.writeText(this.confirmationText);
|
||||||
navigator.clipboard.writeText(this.confirmationText)
|
this.copied = true;
|
||||||
.then(() => {
|
setTimeout(() => {
|
||||||
this.copied = true;
|
this.copied = false;
|
||||||
setTimeout(() => {
|
}, 2000);
|
||||||
this.copied = false;
|
|
||||||
}, 2000);
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
const input = document.createElement('input');
|
|
||||||
input.setAttribute('readonly', '');
|
|
||||||
input.setAttribute('value', this.confirmationText);
|
|
||||||
document.body.appendChild(input);
|
|
||||||
input.select();
|
|
||||||
input.setSelectionRange(0, 99999);
|
|
||||||
document.execCommand('copy');
|
|
||||||
document.body.removeChild(input);
|
|
||||||
this.copied = true;
|
|
||||||
setTimeout(() => {
|
|
||||||
this.copied = false;
|
|
||||||
}, 2000);
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
toggleAction(id) {
|
toggleAction(id) {
|
||||||
const index = this.selectedActions.indexOf(id);
|
const index = this.selectedActions.indexOf(id);
|
||||||
|
Reference in New Issue
Block a user