Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4791.js (118.4 MB)
33 lines
903 B
TypeScript
33 lines
903 B
TypeScript
// Module ID: 16827
|
|
// Function ID: 16828
|
|
// Name: getGamePlatform
|
|
// Dependencies: [1074, 13095, 2]
|
|
// Exports: default
|
|
|
|
// Module 16827 (getGamePlatform)
|
|
import isOnXboxDefault from "isOnXbox" /* 13095 */;
|
|
import Constants from "Constants" /* 1074 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
({ ActivityTypes: c2, ActivityGamePlatforms: c3 } = Constants);
|
|
const result = size.fileFinishedImporting("modules/activities/utils/getGamePlatform.tsx");
|
|
|
|
export default function getGamePlatform(type) {
|
|
let tmp = null;
|
|
if (null != type) {
|
|
tmp = null;
|
|
if (null != type.type) {
|
|
tmp = null;
|
|
if (type.type === constants.PLAYING) {
|
|
if (isOnXboxDefault(type)) {
|
|
let DESKTOP = constants2.XBOX;
|
|
} else if (null != type.platform) {
|
|
DESKTOP = type.platform;
|
|
} else {
|
|
DESKTOP = constants2.DESKTOP;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return tmp;
|
|
};
|