Skip to content

Commit

Permalink
Expose third parties cookies per page (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore authored Dec 11, 2020
1 parent 3781b2b commit dc76090
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ module.exports = {
headerSize: 0,
requests: 0,
cookieNames: [],
cookieNamesThirdParties: [],
cookies: 0,
missingCompression: 0,
fullyLoaded: util.getFullyLoaded(
Expand Down Expand Up @@ -236,6 +237,11 @@ module.exports = {
currentPage.cookieNames.push(...asset.cookieNames);
currentPage.cookies += asset.cookieNames.length;
}
if (asset.cookieNamesThirdParties.length > 0) {
currentPage.cookieNamesThirdParties.push(
...asset.cookieNamesThirdParties
);
}
currentPage.requests += 1;
});

Expand Down

0 comments on commit dc76090

Please sign in to comment.