eslint and minor fixes.

This commit is contained in:
fiatjaf
2021-12-29 14:35:28 -03:00
parent 60fc0d7940
commit 6d4916e6f7
7 changed files with 42 additions and 32 deletions

View File

@@ -1,3 +1,5 @@
/* global WebSocket */
import 'websocket-polyfill'
import {verifySignature} from './event'
@@ -148,7 +150,7 @@ export function relayConnect(url, onNotice) {
try {
await trySend(['EVENT', event])
statusCallback(0)
let {unsub} = relay.sub(
let {unsub} = sub(
{
cb: () => {
statusCallback(1)