decord/source/modules/activities/utils/getIFrameSandboxAttributes.tsx
2026-07-23 10:11:24 +00:00

21 lines
752 B
TypeScript

// Module ID: 10609
// Function ID: 82775
// Name: getIFrameSandboxAttributes
// Dependencies: [2]
// Exports: default
// Module 10609 (getIFrameSandboxAttributes)
let closure_0 = ["allow-pointer-lock", "allow-scripts", "allow-same-origin", "allow-forms"];
const result = require("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(closure_0, 0);
items[arraySpreadResult] = "allow-popups";
items[arraySpreadResult + 1] = "allow-popups-to-escape-sandbox";
obj = items;
}
return obj.join(" ");
};