Skip to content

Commit

Permalink
Remove obsolete check if running as test
Browse files Browse the repository at this point in the history
HTMLUnit now supports `isSecureContext`
  • Loading branch information
D3SOX authored Oct 2, 2023
1 parent ee591a3 commit e257b59
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core/src/main/resources/lib/layout/copyButton/copyButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ Behaviour.specify(
0,
function (copyButton) {
copyButton.addEventListener("click", () => {
// HTMLUnit 2.70.0 does not recognize isSecureContext
// https://issues.jenkins.io/browse/JENKINS-70895
if (!window.isRunAsTest && isSecureContext) {
if (isSecureContext) {
// Copy the text to the clipboard
navigator.clipboard
.writeText(copyButton.getAttribute("text"))
Expand Down

0 comments on commit e257b59

Please sign in to comment.