Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
max-ostapenko committed Sep 21, 2024
1 parent 5c9386c commit 6f9b52c
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions dist/privacy.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ const parseDSRdelete = async (response) => {
};

if (result.present && content) {
Object.assign(result, content.vendorScript ? {vendorScriptPresent: true} : {});
Object.assign(result, response.redirected ? {endpointOrigin: new URL(content.endpoint).origin} : {});
Object.assign(result, content.identifiers ? {identifiers: content.identifiers} : {});
Object.assign(result, content.vendorScriptRequirement ? {vendorScriptRequirement: true} : {});
Object.assign(result, content.vendorScript ? { vendorScriptPresent: true } : {});
Object.assign(result, response.redirected ? { endpointOrigin: new URL(content.endpoint).origin } : {});
Object.assign(result, content.identifiers ? { identifiers: content.identifiers } : {});
Object.assign(result, content.vendorScriptRequirement ? { vendorScriptRequirement: true } : {});
}

return result;
Expand Down Expand Up @@ -580,15 +580,15 @@ let sync_metrics = {
};


/**
* IAB: Data Deletion Request Framework
* https://github.com/InteractiveAdvertisingBureau/Data-Subject-Rights/blob/main/Data%20Deletion%20Request%20Framework.md
*/
let iab_ddr = Promise.resolve(fetchAndParse("/dsrdelete.json", parseDSRdelete));
/**
* IAB: Data Deletion Request Framework
* https://github.com/InteractiveAdvertisingBureau/Data-Subject-Rights/blob/main/Data%20Deletion%20Request%20Framework.md
*/
let iab_ddr = Promise.resolve(fetchAndParse("/dsrdelete.json", parseDSRdelete));

return Promise.all([iab_ddr]).then(([iab_ddr]) => {
return {
...sync_metrics,
...{iab_ddr: iab_ddr}
...{ iab_ddr: iab_ddr }
};
});

0 comments on commit 6f9b52c

Please sign in to comment.