feat: ignore untrusted relay list and onion relays
This commit is contained in:
parent
8d23c49908
commit
c85892d6cd
3 changed files with 27 additions and 16 deletions
|
|
@ -18,6 +18,12 @@ export function isAndroid() {
|
|||
return /android/i.test(ua)
|
||||
}
|
||||
|
||||
export function isTorBrowser() {
|
||||
if (typeof window === 'undefined' || !window.navigator) return false
|
||||
const ua = window.navigator.userAgent
|
||||
return /torbrowser/i.test(ua)
|
||||
}
|
||||
|
||||
export function isInViewport(el: HTMLElement) {
|
||||
const rect = el.getBoundingClientRect()
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue