mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 14:19:53 +01:00
Address review feedback from @pixeldesu
Co-authored-by: Andreas Nedbal <git@pixelde.su>
This commit is contained in:
parent
3e9fb2890f
commit
d9e6982637
2 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
require('sweetalert/dist/sweetalert.css');
|
||||
|
||||
import start from 'retrospring/common';
|
||||
import initAnnouncements from 'retrospring/features/announcement/index';
|
||||
import initAnnouncements from 'retrospring/features/announcement';
|
||||
import initAnswerbox from 'retrospring/features/answerbox/index';
|
||||
import initInbox from 'retrospring/features/inbox/index';
|
||||
import initUser from 'retrospring/features/user';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
export default function (event: Event): void {
|
||||
const announcement = (event.target as HTMLElement).closest(".announcement") as HTMLDivElement;
|
||||
const aId = announcement.dataset.announcementId;
|
||||
window.localStorage.setItem(`announcement${aId}`, 'true');
|
||||
const announcementId = announcement.dataset.announcementId;
|
||||
window.localStorage.setItem(`announcement${announcementId}`, 'true');
|
||||
}
|
Loading…
Reference in a new issue