Hide copy button in insecure environments

This commit is contained in:
Max Berger
2026-05-23 23:33:28 +02:00
parent b31c9a04e9
commit 1f42397132

View File

@@ -63,7 +63,11 @@ export class UrlTextHandler {
});
if (this._copyButton) {
this._copyButton.onclick = () => this._oncopy();
if (typeof window !== "undefined" && !window.isSecureContext) {
this._copyButton.classList.add("hidden");
} else {
this._copyButton.onclick = () => this._oncopy();
}
}
}