feat: outbox model for the following feed
This commit is contained in:
@@ -5,3 +5,7 @@ export function isTouchDevice() {
|
||||
export function isEmail(email: string) {
|
||||
return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)
|
||||
}
|
||||
|
||||
export function isDevEnv() {
|
||||
return process.env.NODE_ENV === 'development'
|
||||
}
|
||||
|
||||
@@ -4,3 +4,10 @@ import { twMerge } from 'tailwind-merge'
|
||||
export function cn(...inputs: ClassValue[]) {
|
||||
return twMerge(clsx(inputs))
|
||||
}
|
||||
|
||||
export function isSafari() {
|
||||
if (typeof window === 'undefined' || !window.navigator) return false
|
||||
const ua = window.navigator.userAgent
|
||||
const vendor = window.navigator.vendor
|
||||
return /Safari/.test(ua) && /Apple Computer/.test(vendor) && !/Chrome/.test(ua)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user