-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix sessionRecording bug #234
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,8 +87,8 @@ export class RequestQueue { | |
clearTimeout(this._poller) | ||
const requests = this._event_queue.length > 0 ? this.formatQueue() : {} | ||
this._event_queue.length = 0 | ||
for (let url in requests) { | ||
const { data, options } = requests[url] | ||
for (let key in requests) { | ||
const { url, data, options } = requests[key] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Interesting. There are tests under src/tests/request-queue.js - mind adding one or editing existing ones in a way which demonstrates the problem? E.g. how was enqueue called in this case? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure thing, that was the first item for today! It's kinda unfortunate: we had a similar test for poll that works, but didn't have one for unload. |
||
this.handlePollRequest(url, data, { ...options, transport: 'sendbeacon' }) | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with the old code, this would be called with
('sessionRecording', data, options)