22 lines
712 B
TypeScript
22 lines
712 B
TypeScript
// Module ID: 8927
|
|
// Function ID: 8928
|
|
// Name: getIFrameAllowAttributes
|
|
// Dependencies: [2]
|
|
// Exports: default
|
|
|
|
// Module 8927 (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(items, closure_1, HermesBuiltin.arraySpread(items, closure_0, 0));
|
|
obj = items;
|
|
}
|
|
return obj.join("; ");
|
|
};
|