Skip to content

Commit

Permalink
check if license page before init stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
froger-me committed Jan 12, 2024
1 parent 27e2f07 commit 14567fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions js/admin/license.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
/* global Wppus, console */
jQuery(document).ready(function ($) {

if ($('.wp-packages-update-server_page_wppus-page-licenses').length === 0) {
return;
}

editor = wp.codeEditor.initialize($('#wppus_license_data'), WppusAdminLicense.cm_settings);

$('#add_license_trigger').on('click', function() {
Expand Down
2 changes: 1 addition & 1 deletion js/admin/license.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 14567fd

Please sign in to comment.