import hasDom from './lib/has-dom';

declare const chrome: unknown;
declare const opera: unknown;
declare const MSInputMethodContext: unknown;
declare const documentMode: unknown;

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 ? typeof chrome === 'object' && !(typeof opera === 'object') : false;
export const isFirefox = hasDom ? /Firefox|FxiOS/.test(userAgent) : false;
export const isIE = hasDom
  ? typeof MSInputMethodContext !== 'undefined' && typeof documentMode !== 'undefined'
  : false;

import hasDom from './lib/has-dom';

declare const chrome: unknown;
declare const opera: unknown;

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 ? typeof chrome === 'object' && !(typeof opera === 'object') : false;
export const isFirefox = hasDom ? /Firefox|FxiOS/.test(userAgent) : false;

Remove browser detection for IE
Remove browser detection for IE
