Skip to content

Commit

Permalink
fix 1ds offline support
Browse files Browse the repository at this point in the history
  • Loading branch information
Karlie-777 committed May 1, 2024
1 parent 3af1dae commit d49dde0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions channels/1ds-post-js/src/PostChannel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,11 @@ export class PostChannel extends BaseTelemetryPlugin implements IChannelControls
return !_disableTelemetry;
},
createPayload: (evt) => {
// should get new url headers based on payload directly
let curDetails = _httpManager && _httpManager.getOfflineRequestDetails();
return {
urlString: details.url,
headers: details.hdrs,
urlString: curDetails.url,
headers: curDetails.hdrs,
data: evt
} as IPayloadData;
}
Expand Down

0 comments on commit d49dde0

Please sign in to comment.