MCPcopy Create free account
hub / github.com/DHTMLX/scheduler / getLightboxRoot

Function getLightboxRoot

codebase/sources/dhtmlxscheduler.es.js:6679–6687  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6677 scheduler2._focus(node.getElementsByTagName("select")[0]);
6678 } } };
6679 function getLightboxRoot() {
6680 const cspEnvironment = scheduler2.config.csp === true;
6681 const salesforceEnvironment = !!window["Sfdc"] || !!window["$A"] || window["Aura"] || "$shadowResolver$" in document.body;
6682 if (cspEnvironment || salesforceEnvironment) {
6683 return scheduler2.$root;
6684 } else {
6685 return document.body;
6686 }
6687 }
6688 scheduler2._setLbPosition = function(box) {
6689 if (!box) {
6690 return;

Callers 1

extend$6Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected