Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
36 lines
985 B
TypeScript
36 lines
985 B
TypeScript
// Module ID: 4740
|
|
// Function ID: 4741
|
|
// Name: getSoundshareAnalyticsContext
|
|
// Dependencies: [1915, 2]
|
|
// Exports: default
|
|
|
|
// Module 4740 (getSoundshareAnalyticsContext)
|
|
import RunningGameStore from "RunningGameStore" /* 1915 */;
|
|
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/go_live/utils/getSoundshareAnalyticsContext.tsx");
|
|
|
|
export default function getSoundshareAnalyticsContext(sourcePid) {
|
|
if (null == sourcePid) {
|
|
return {};
|
|
} else {
|
|
sourcePid = sourcePid.sourcePid;
|
|
let tmp;
|
|
let tmp2;
|
|
if (null != sourcePid) {
|
|
const gameForPID = RunningGameStore.getGameForPID(sourcePid);
|
|
let name;
|
|
if (gameForPID != null) {
|
|
name = gameForPID.name;
|
|
}
|
|
let id;
|
|
if (gameForPID != null) {
|
|
id = gameForPID.id;
|
|
}
|
|
tmp = id;
|
|
tmp2 = name;
|
|
}
|
|
const obj = { soundshare_session: sourcePid.soundshareSession, share_game_name: tmp2, share_game_id: tmp };
|
|
return obj;
|
|
}
|
|
};
|