mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 09:25:27 +00:00
Import assets and add PWA.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Client } from 'revolt.js';
|
||||
import { Client } from "revolt.js";
|
||||
|
||||
export enum ClientStatus {
|
||||
LOADING,
|
||||
@@ -7,7 +7,7 @@ export enum ClientStatus {
|
||||
DISCONNECTED,
|
||||
CONNECTING,
|
||||
RECONNECTING,
|
||||
ONLINE
|
||||
ONLINE,
|
||||
}
|
||||
|
||||
export const RevoltJSClient = new Client({
|
||||
|
||||
@@ -5,6 +5,6 @@ export function mapMessage(message: Partial<Message>) {
|
||||
const { edited, ...msg } = message;
|
||||
return {
|
||||
...msg,
|
||||
edited: edited?.$date
|
||||
edited: edited?.$date,
|
||||
} as MessageObject;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user