Method
shouldQueue
(payload: TrackHandlerPayload)
Source from the content-addressed store, hash-verified
| 94 | } |
| 95 | |
| 96 | private shouldQueue(payload: TrackHandlerPayload): boolean { |
| 97 | if (this.options.disabled) { |
| 98 | return true; |
| 99 | } |
| 100 | if (this.options.waitForProfile && !this.profileId) { |
| 101 | return true; |
| 102 | } |
| 103 | if (payload.type === 'replay' && !this.sessionId) { |
| 104 | return true; |
| 105 | } |
| 106 | return false; |
| 107 | } |
| 108 | |
| 109 | addQueue(payload: TrackHandlerPayload) { |
| 110 | if (payload.type === 'track') { |
Tested by
no test coverage detected