Merge pull request #2141 from maxberger/master

Hide copy button in insecure environments
This commit is contained in:
Peter Bieringer
2026-05-24 10:34:15 +03:00
committed by GitHub

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();
}
}
}