feat: ignore untrusted relay list and onion relays
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user