Sha256: f2c5a2647872c18acfdf6eaba4c8a0b4e1778f502a2858ba641a42e289a50a8c

Contents?: true

Size: 644 Bytes

Versions: 3

Compression:

Stored size: 644 Bytes

Contents

// check if window exists and actually is the global
export default typeof self === 'object' &&
    self !== null &&
    self.Object === Object &&
    typeof Window !== 'undefined' &&
    self.constructor === Window &&
    typeof document === 'object' &&
    document !== null &&
    self.document === document &&
    typeof location === 'object' &&
    location !== null &&
    self.location === location &&
    typeof history === 'object' &&
    history !== null &&
    self.history === history &&
    typeof navigator === 'object' &&
    navigator !== null &&
    self.navigator === navigator &&
    typeof navigator.userAgent === 'string';

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/lib/has-dom.js
discourse-ember-source-3.5.1.1 dist/es/ember-browser-environment/lib/has-dom.js
discourse-ember-source-3.5.1.0 dist/dist/es/ember-browser-environment/lib/has-dom.js