Skip to content

Commit 5e926f1

Browse files
authored
Merge pull request #2141 from maxberger/master
Hide copy button in insecure environments
2 parents b31c9a0 + 1f42397 commit 5e926f1

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

radicale/web/internal_data/js/utils/url_text.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@ export class UrlTextHandler {
6363
});
6464

6565
if (this._copyButton) {
66-
this._copyButton.onclick = () => this._oncopy();
66+
if (typeof window !== "undefined" && !window.isSecureContext) {
67+
this._copyButton.classList.add("hidden");
68+
} else {
69+
this._copyButton.onclick = () => this._oncopy();
70+
}
6771
}
6872
}
6973

0 commit comments

Comments
 (0)