decord/source/modules/activities/utils/getIFrameSandboxAttributes.tsx

23 lines
749 B
TypeScript
Raw Normal View History

2026-07-21 06:55:02 +00:00
// Module ID: 10598
// Function ID: 82701
2026-07-20 16:05:17 +00:00
// Name: getIFrameSandboxAttributes
2026-07-21 06:55:02 +00:00
// Dependencies: [284214097]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-21 06:55:02 +00:00
// Module 10598 (getIFrameSandboxAttributes)
let closure_0 = [false, false, false, false];
2026-07-20 16:05:17 +00:00
const _module = require(dependencyMap[0]);
const result = _module.fileFinishedImporting("modules/activities/utils/getIFrameSandboxAttributes.tsx");
export default function getIFrameSandboxAttributes(allowPopups) {
let obj = closure_0;
if (allowPopups.allowPopups) {
const items = [, ];
const arraySpreadResult = HermesBuiltin.arraySpread(closure_0, 0);
items[arraySpreadResult] = "allow-popups";
items[arraySpreadResult + 1] = "allow-popups-to-escape-sandbox";
obj = items;
}
return obj.join(" ");
};