decord/alpha/source/modules/activities/utils/getIFrameAllowAttributes.tsx
github-actions 72019a2d0c chore: update source for alpha 348.4
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5014.js (118.4 MB)
2026-09-25 08:38:05 +00:00

22 lines
692 B
TypeScript

// Module ID: 8916
// Function ID: 8917
// Name: getIFrameAllowAttributes
// Dependencies: [2]
// Exports: default
// Module 8916 (getIFrameAllowAttributes)
import size from "module_2" /* 2 */;
let closure_0 = ["autoplay", "encrypted-media"];
let closure_1 = ["accelerometer", "gyroscope"];
const result = size.fileFinishedImporting("modules/activities/utils/getIFrameAllowAttributes.tsx");
export default function getIFrameAllowAttributes(allowMotionSensors) {
let obj = closure_0;
if (true === allowMotionSensors.allowMotionSensors) {
const items = [];
HermesBuiltin.arraySpread(closure_1, HermesBuiltin.arraySpread(tmp, 0));
obj = items;
}
return obj.join("; ");
};