Skip to content

Commit 204ba6a

Browse files
committed
Document date-format
1 parent f3f58ee commit 204ba6a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pkg/web_app/lib/src/widget/dismiss/widget.dart

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,14 @@ void create(HTMLElement element, Map<String, String> options) {
7575
element.addEventListener('click', dismiss.toJS);
7676
}
7777

78-
/// LocalStorage key where we store the hashes of messages that have been
78+
/// LocalStorage key where we store the identifiers of messages that have been
7979
/// dismissed.
8080
///
81-
/// Data is stored on the format: `<hash>@<date>;<hash>@<date>;...`
81+
/// Data is stored on the format: `<message-id>@<date>;<message-id>@<date>;...`,
82+
/// where:
83+
/// * `<date>` is on the form `YYYY-MM-DD`.
84+
/// * `<message-id>` is the `data-dismiss-message-id` passed to a dismiss
85+
/// widget.
8286
const _dismissedMessageslocalStorageKey = 'dismissed-messages';
8387

8488
late final _dismissed = [

0 commit comments

Comments
 (0)