diff --git a/dist/privacy.js b/dist/privacy.js index 720f4a4..bb78944 100644 --- a/dist/privacy.js +++ b/dist/privacy.js @@ -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; @@ -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 } }; });