Files
starface-outlook-sync-addin/node_modules/@fluentui/utilities/lib-commonjs/dom/canUseDOM.js
T
Stefan Hacker 37ad745546 first commit
2026-04-03 09:38:48 +02:00

15 lines
491 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.canUseDOM = canUseDOM;
/**
* 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, @typescript-eslint/no-deprecated
(window.document && window.document.createElement)));
}
//# sourceMappingURL=canUseDOM.js.map