Sha256: b688744cd199a36cb89b69d011beab241b7bcead4128f63011075cf1b1d91599
Contents?: true
Size: 475 Bytes
Versions: 3
Compression:
Stored size: 475 Bytes
Contents
import hasDom from './lib/has-dom'; export { default as hasDOM } from './lib/has-dom'; export const window = hasDom ? self : null; export const location = hasDom ? self.location : null; export const history = hasDom ? self.history : null; export const userAgent = hasDom ? self.navigator.userAgent : 'Lynx (textmode)'; export const isChrome = hasDom ? !!window.chrome && !window.opera : false; export const isFirefox = hasDom ? typeof InstallTrigger !== 'undefined' : false;
Version data entries
3 entries across 3 versions & 1 rubygems