Merge pull request #2141 from maxberger/master
Hide copy button in insecure environments
This commit is contained in:
@@ -63,7 +63,11 @@ export class UrlTextHandler {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (this._copyButton) {
|
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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user