refactor: remove electron-related code
This commit is contained in:
9
src/lib/relay.ts
Normal file
9
src/lib/relay.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { TRelayInfo } from '@/types'
|
||||
|
||||
export function checkAlgoRelay(relayInfo: TRelayInfo | undefined) {
|
||||
return relayInfo?.software === 'https://github.com/bitvora/algo-relay' // hardcode for now
|
||||
}
|
||||
|
||||
export function checkSearchRelay(relayInfo: TRelayInfo | undefined) {
|
||||
return relayInfo?.supported_nips?.includes(50)
|
||||
}
|
||||
Reference in New Issue
Block a user