mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-31 04:02:12 +02:00
Apply suggestion from @pixeldesu
Co-authored-by: Andreas Nedbal <andy@pixelde.su>
This commit is contained in:
parent
d9e6982637
commit
e7672e8033
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ import closeAnnouncementHandler from './close';
|
||||||
|
|
||||||
export default (): void => {
|
export default (): void => {
|
||||||
registerEvents([
|
registerEvents([
|
||||||
{ type: 'click', target: '.announcement button.close', handler: closeAnnouncementHandler, global: true },
|
{ type: 'click', target: document.querySelector('.announcement button.close'), handler: closeAnnouncementHandler },
|
||||||
]);
|
]);
|
||||||
|
|
||||||
document.querySelectorAll('.announcement').forEach(function (el: HTMLDivElement) {
|
document.querySelectorAll('.announcement').forEach(function (el: HTMLDivElement) {
|
||||||
|
|
Loading…
Reference in a new issue