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

17 lines
612 B
JavaScript

define(["require", "exports"], function (require, exports) {
"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