decord/beta/source/modules/activities/utils/getIFrameSandboxAttributes.tsx
github-actions e7a050048e chore: update source for beta 347.7
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
2026-09-21 19:31:18 +00:00

23 lines
771 B
TypeScript

// Module ID: 9731
// Function ID: 9732
// Name: getIFrameSandboxAttributes
// Dependencies: [2]
// Exports: default
// Module 9731 (getIFrameSandboxAttributes)
import size from "module_2" /* 2 */;
let closure_0 = ["allow-pointer-lock", "allow-scripts", "allow-same-origin", "allow-forms"];
const result = size.fileFinishedImporting("modules/activities/utils/getIFrameSandboxAttributes.tsx");
export default function getIFrameSandboxAttributes(allowPopups) {
let obj = closure_0;
if (allowPopups.allowPopups) {
const items = [, ];
const arraySpreadResult = HermesBuiltin.arraySpread(tmp, 0);
items[arraySpreadResult] = "allow-popups";
items[arraySpreadResult + 1] = "allow-popups-to-escape-sandbox";
obj = items;
}
return obj.join(" ");
};