Skip to content

Commit 3e338c3

Browse files
committed
wip
1 parent 08b93a9 commit 3e338c3

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

ghost.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,7 @@ public function render_page( $args ) {
171171
// Enforce username and password, remove PHP version
172172
$msg .= '
173173
<script>
174-
(function($){
175-
(function() {
174+
document.addEventListener("DOMContentLoaded", function() {
176175
$("label[for=webapp_php_version]").parent().css("display", "none");
177176
let borderColor = $("#webapp_ghost_fullname").css("border-color");
178177
let toolbar = $(".l-center.edit").html();
@@ -225,8 +224,7 @@ function nr_validate() {
225224
}, 500)
226225
});
227226
nr_validate();
228-
});
229-
})(jQuery);
227+
});
230228
</script>
231229
';
232230
}

0 commit comments

Comments
 (0)