Skip to content

Conversation

mayfield
Copy link

Fixes inclusion of the request.url value for service workers.

Fixes inclusion of the request.url value for service workers.

if (_window.location && _window.location.href) {
httpData.url = _window.location.href;
} else if (_document.location && _document.location.href) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We still need a check for this._hasDocument here before accessing location

if (_document.location && _document.location.href) {
httpData.url = _document.location.href;
}
if (_document.referrer) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can be merged into one if (this._hasDocument && _document.referrer)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants