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

Version Path
discourse-ember-source-3.6.0.0 dist/es/@ember/-internals/browser-environment/index.js
discourse-ember-source-3.5.1.1 dist/es/ember-browser-environment/index.js
discourse-ember-source-3.5.1.0 dist/dist/es/ember-browser-environment/index.js