Address review feedback from @pixeldesu
Co-authored-by: Andreas Nedbal <git@pixelde.su>
This commit is contained in:
parent
3e9fb2890f
commit
d9e6982637
|
@ -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 New Issue