4 lines
271 B
JavaScript
Raw Normal View History

2024-01-29 09:26:07 +08:00
import { isBrowser } from "./is-browser.mjs";
export const isChrome = isBrowser && 'chrome' in window;
export const isFirefox = isBrowser && navigator.userAgent.includes('Firefox');
export const isSafari = isBrowser && navigator.userAgent.includes('Safari') && !isChrome;