chore: formatting
This commit is contained in:
@ -1,10 +1,9 @@
|
||||
|
||||
export const enum NostrSystemCommand {
|
||||
OkResponse,
|
||||
ErrorResponse,
|
||||
Init,
|
||||
ConnectRelay,
|
||||
DisconnectRelay
|
||||
OkResponse,
|
||||
ErrorResponse,
|
||||
Init,
|
||||
ConnectRelay,
|
||||
DisconnectRelay,
|
||||
}
|
||||
|
||||
export interface NostrSystemMessage<T> {
|
||||
|
@ -41,7 +41,7 @@ globalThis.onmessage = async ev => {
|
||||
}
|
||||
case NostrSystemCommand.ConnectRelay: {
|
||||
checkInitialized();
|
||||
const cmd = ev.data as NostrSystemMessage<[string, {read: boolean, write: boolean}]>;
|
||||
const cmd = ev.data as NostrSystemMessage<[string, { read: boolean; write: boolean }]>;
|
||||
await system?.ConnectToRelay(cmd.data[0], cmd.data[1]);
|
||||
okReply(data.id, "Connected");
|
||||
break;
|
||||
|
Reference in New Issue
Block a user