Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
31 lines
1.1 KiB
TypeScript
31 lines
1.1 KiB
TypeScript
// Module ID: 13780
|
|
// Function ID: 13781
|
|
// Name: isClientClipsCapable
|
|
// Dependencies: [4663, 13779, 1364, 2]
|
|
// Exports: default
|
|
|
|
// Module 13780 (isClientClipsCapable)
|
|
import PlatformUtilsAll from "PlatformUtils" /* 1364 */;
|
|
import Constants from "Constants" /* 4663 */;
|
|
import ClipsExperiment2 from "ClipsExperiment" /* 13779 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const Features = Constants.Features;
|
|
const result = size.fileFinishedImporting("modules/clips/isClientClipsCapable.tsx");
|
|
|
|
export default function isClientClipsCapable(getMediaEngine) {
|
|
const ClipsExperiment = ClipsExperiment2.ClipsExperiment;
|
|
let ignorePlatformRestriction = ClipsExperiment.getConfig({ location: "isClipsClientCapable" }).ignorePlatformRestriction;
|
|
const mediaEngine = getMediaEngine.getMediaEngine();
|
|
if (!ignorePlatformRestriction) {
|
|
let isDesktopResult = PlatformUtilsAll.isDesktop();
|
|
if (isDesktopResult) {
|
|
isDesktopResult = mediaEngine.supports(Features.CLIPS);
|
|
}
|
|
if (isDesktopResult) {
|
|
isDesktopResult = mediaEngine.hasClipsV3Support();
|
|
}
|
|
ignorePlatformRestriction = isDesktopResult;
|
|
}
|
|
return ignorePlatformRestriction;
|
|
};
|