mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-10 01:03:36 -05:00
chore: clean up code
This commit is contained in:
parent
1b6275d1b5
commit
1d4eed872b
2 changed files with 0 additions and 2 deletions
|
@ -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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue