mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-06 17:11:55 +00:00
chore: clean up code
This commit is contained in:
@@ -123,7 +123,6 @@ export default class State {
|
|||||||
() => stringify(store.toJSON()),
|
() => stringify(store.toJSON()),
|
||||||
async (value) => {
|
async (value) => {
|
||||||
try {
|
try {
|
||||||
console.log(`I am saving ${id} as ${value}`);
|
|
||||||
await localforage.setItem(id, JSON.parse(value));
|
await localforage.setItem(id, JSON.parse(value));
|
||||||
if (id === "sync") return;
|
if (id === "sync") return;
|
||||||
if (!client) return;
|
if (!client) return;
|
||||||
|
|||||||
@@ -85,7 +85,6 @@ export default class Auth implements Store, Persistent<Data> {
|
|||||||
@action setSession(session: Session) {
|
@action setSession(session: Session) {
|
||||||
this.sessions.set(session.user_id, { session });
|
this.sessions.set(session.user_id, { session });
|
||||||
this.current = session.user_id;
|
this.current = session.user_id;
|
||||||
console.log(this.sessions, this.current);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user