Hide copy button in insecure environments
This commit is contained in:
@@ -63,9 +63,13 @@ export class UrlTextHandler {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (this._copyButton) {
|
if (this._copyButton) {
|
||||||
|
if (typeof window !== "undefined" && !window.isSecureContext) {
|
||||||
|
this._copyButton.classList.add("hidden");
|
||||||
|
} else {
|
||||||
this._copyButton.onclick = () => this._oncopy();
|
this._copyButton.onclick = () => this._oncopy();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
_updateScroll() {
|
_updateScroll() {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user