Outlook_Addin_LLM/node_modules/@fluentui/utilities/lib-amd/dom/canUseDOM.js

18 lines
635 B
JavaScript
Raw Permalink Normal View History

define(["require", "exports"], function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.canUseDOM = void 0;
/**
* Verifies if an application can use DOM.
*/
function canUseDOM() {
return (
// eslint-disable-next-line no-restricted-globals
typeof window !== 'undefined' &&
!!(
// eslint-disable-next-line no-restricted-globals, deprecation/deprecation
(window.document && window.document.createElement)));
}
exports.canUseDOM = canUseDOM;
});
//# sourceMappingURL=canUseDOM.js.map