Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4942.js (118.4 MB)
26 lines
836 B
TypeScript
26 lines
836 B
TypeScript
// Module ID: 7714
|
|
// Function ID: 7715
|
|
// Name: SkippedClientHeartbeatUtil
|
|
// Dependencies: [1372, 7715, 2]
|
|
// Exports: shouldLogClientHeartbeatSkipped
|
|
|
|
// Module 7714 (SkippedClientHeartbeatUtil)
|
|
import sampleWithUserId from "sampleWithUserId" /* 7715 */;
|
|
import UserStore from "UserStore" /* 1372 */;
|
|
|
|
require = fn;
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/analytics_sessions/SkippedClientHeartbeatUtil.tsx");
|
|
|
|
export const shouldLogClientHeartbeatSkipped = function shouldLogClientHeartbeatSkipped() {
|
|
const currentUser = UserStore.getCurrentUser();
|
|
let tmp = null != currentUser;
|
|
if (tmp) {
|
|
let isStaffResult = currentUser.isStaff();
|
|
if (!isStaffResult) {
|
|
isStaffResult = sampleWithUserId.sampleWithUserId(currentUser.id, 0.02);
|
|
}
|
|
tmp = isStaffResult;
|
|
}
|
|
return tmp;
|
|
};
|