feat: add nonce for js script
This commit is contained in:
parent
39a6cadf11
commit
256eea24ea
1 changed files with 1 additions and 1 deletions
|
|
@ -957,7 +957,7 @@ if ($action == 'create') {
|
|||
print '</table>';
|
||||
print '</div>';
|
||||
|
||||
print '<script>';
|
||||
print '<script nonce="'.getNonce().'">';
|
||||
print '$(".tdforbreakperms:not(.alink)").on("click", function(){
|
||||
console.log("Click on tdforbreakperms");
|
||||
moduletohide = $(this).data("hide-perms");
|
||||
|
|
|
|||
Loading…
Reference in a new issue