decord/source/modules/activities/utils/getIFrameSandboxAttributes.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

23 lines
764 B
TypeScript

// Module ID: 9652
// Function ID: 9653
// Name: getIFrameSandboxAttributes
// Dependencies: [2]
// Exports: default
// Module 9652 (getIFrameSandboxAttributes)
import set from "set" /* 2 */;
let closure_0 = ["allow-pointer-lock", "allow-scripts", "allow-same-origin", "allow-forms"];
const result = set.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(" ");
};