Skip to content
Snippets Groups Projects

Js linting done.

4 files
+ 30
28
Compare changes
  • Side-by-side
  • Inline
Files
4
(function (Drupal, once) {
/**
* Update the announce icon when tray is opened.
*
@@ -7,13 +6,16 @@
*/
Drupal.behaviors.announce = {
attach(context) {
const announcement = once('announce-new', '.announce-new', context).shift();
const announcement = once(
'announce-new',
'.announce-new',
context,
).shift();
if (announcement) {
announcement.addEventListener('click', function (e) {
e.currentTarget.classList.remove('announce-new');
})
});
}
}
},
};
})( Drupal, once);
})(Drupal, once);
Loading