Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix: maybe fallback is now working

peaklabs-devb25463b084b2
diff --git a/resources/views/components/modal-confirmation.blade.php b/resources/views/components/modal-confirmation.blade.php
index 4620d35ed6..94f1f84f4c 100644
--- a/resources/views/components/modal-confirmation.blade.php
+++ b/resources/views/components/modal-confirmation.blade.php
@@ -92,9 +92,8 @@
});
},
copyConfirmationText() {
- const textToCopy = this.confirmationText;
if (navigator.clipboard && window.isSecureContext) {
- navigator.clipboard.writeText(textToCopy)
+ navigator.clipboard.writeText(this.confirmationText)
.then(() => {
this.copied = true;
setTimeout(() => {
@@ -103,9 +102,10 @@
});
} else {
const textarea = document.createElement('textarea');
- textarea.value = textToCopy;
- textarea.style.position = 'fixed';
- textarea.style.opacity = '0';
+ textarea.value = this.confirmationText;
+ textarea.style.position = 'absolute';
+ textarea.style.left = '-9999px';
+ textarea.style.top = '0';
document.body.appendChild(textarea);
textarea.select();
try {