We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 054c16e commit e3da655Copy full SHA for e3da655
client/webserver/site/src/js/forms.ts
@@ -1870,7 +1870,12 @@ export class DepositAddress {
1870
const page = this.page = Doc.idDescendants(form)
1871
Doc.cleanTemplates(page.unifiedReceiverTmpl)
1872
Doc.bind(page.newDepAddrBttn, 'click', async () => { this.newDepositAddress() })
1873
- Doc.bind(page.copyAddressBtn, 'click', () => { this.copyAddress() })
+ // navigator.clipboard can only be accessed on localhost or over https.
1874
+ if (window.isSecureContext) {
1875
+ Doc.bind(page.copyAddressBtn, 'click', () => { this.copyAddress() })
1876
+ } else {
1877
+ Doc.hide(page.copyAddressBtn)
1878
+ }
1879
}
1880
1881
/* Display a deposit address. */
0 commit comments