/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */
/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */

const canUseDOM = !!(
	typeof window !== 'undefined' &&
	window.document &&
	window.document.createElement
);

const ExecutionEnvironment = {
	canUseDOM,
	canUseWorkers: typeof Worker !== 'undefined',
	canUseEventListeners:
		canUseDOM && !!(window.addEventListener || window.attachEvent),
	canUseViewport: canUseDOM && !!window.screen,
};

export default ExecutionEnvironment;

/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */
/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */

const canUseDOM = !!(
	typeof window !== 'undefined' &&
	window.document &&
	window.document.createElement
);
const canUseWorkers = typeof Worker !== 'undefined';
const canUseEventListeners = canUseDOM && !!(window.addEventListener || window.attachEvent);
const canUseViewport = canUseDOM && !!window.screen;

export {
	canUseDOM,
	canUseWorkers,
	canUseEventListeners,
	canUseViewport,
};

Change exports for Execution Environment
Change exports for Execution Environment

This reverts the export which is resulting in canUseDOM’s value equaling undefined.
