Skip to content

Commit

Permalink
CSP - onunload Attribute entfernt (#5745)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbaddade committed Jul 30, 2023
1 parent 185d124 commit 606cc8a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions redaxo/src/core/assets/standard.js
Expand Up @@ -2,6 +2,11 @@
REDAXO JavaScript library
*/

// -------------------------------------------------------------------------------------------------------------------
window.addEventListener("unload", (event) => {
closeAll();
});

// -------------------------------------------------------------------------------------------------------------------

function getObj(name)
Expand Down
1 change: 0 additions & 1 deletion redaxo/src/core/layout/top.php
Expand Up @@ -26,7 +26,6 @@
$bodyId = rex::isSetup() ? 'setup' : rex_string::normalize(rex_be_controller::getCurrentPage(), '-', ' ');

$bodyAttr['id'] = ['rex-page-' . $bodyId];
$bodyAttr['onunload'] = ['closeAll();'];

$bodyAttr['class'] = ['rex-is-logged-out'];
if ($user) {
Expand Down

0 comments on commit 606cc8a

Please sign in to comment.