MCPcopy Create free account
hub / github.com/ShareDropio/sharedrop / trackSizeOfReceivedFiles

Function trackSizeOfReceivedFiles

app/initializers/prerequisites.js:60–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58
59 // TODO: move it to a separate initializer
60 function trackSizeOfReceivedFiles() {
61 $.subscribe('file_received.p2p', (event, data) => {
62 Analytics.trackEvent('received', {
63 event_category: 'file',
64 event_label: 'size',
65 value: Math.round(data.info.size / 1000),
66 });
67 });
68 }
69
70 application.deferReadiness();
71

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected