1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-03 00:07:05 +00:00

Add comment management/templates/system-backup.html

This commit is contained in:
Hugh Secker-Walker 2023-01-30 15:53:45 -05:00 committed by GitHub
parent f5e4cb91ca
commit f8960ecb31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -377,7 +377,8 @@ const url_split = url => {
} }
}; };
// hide Copy button if not in a modern clipboard-supporting environment // Hide Copy button if not in a modern clipboard-supporting environment.
// Using document API because jQuery is not necessarily available in this script scope.
if (!(navigator && navigator.clipboard && navigator.clipboard.writeText)) { if (!(navigator && navigator.clipboard && navigator.clipboard.writeText)) {
document.getElementById('copy_pub_key_div').hidden = true; document.getElementById('copy_pub_key_div').hidden = true;
} }