adds methods to save "Disclaimer-Accept" status within the localStorage
const READ_URIS = "wonReadUris";
const CLOSED_CONN_URIS = "wonClosedConnectionUris";
const INACTIVE_NEED_URIS = "inactiveNeedUris";
+const DISCLAIMER_ACCEPTED = "disclaimerAccepted";
export function markUriAsRead(uri) {
//TODO: BETTER IMPL
@@ -143,3 +144,15 @@ export function getInactiveNeedUris() {
export function clearInactiveNeedUris() {
localStorage.removeItem(INACTIVE_NEED_URIS);
}
+
+export function isDisclaimerAccepted() {
+ return !!localStorage.getItem(DISCLAIMER_ACCEPTED);
+}
+
+export function setDisclaimerAccepted() {
+ localStorage.setItem(DISCLAIMER_ACCEPTED, true);
+}
+
+export function clearDisclaimerAccepted() {
+ localStorage.removeItem(DISCLAIMER_ACCEPTED);
+}
