File tree Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ const parseDSRdelete = async (response) => {
9191 return result ;
9292}
9393
94- return JSON . stringify ( {
94+ let sync_metrics = {
9595 /**
9696 * Privacy policies
9797 * Wording sourced from: https://github.com/RUB-SysSec/we-value-your-privacy/blob/master/privacy_wording.json
@@ -290,12 +290,6 @@ return JSON.stringify({
290290 }
291291 } ) ( ) ,
292292
293- /**
294- * IAB: Data Deletion Request Framework
295- * https://github.com/InteractiveAdvertisingBureau/Data-Subject-Rights/blob/main/Data%20Deletion%20Request%20Framework.md
296- */
297- iab_ddr : await fetchAndParse ( "/dsrdelete.json" , parseDSRdelete ) ,
298-
299293 /**
300294 * Do Not Track (DNT)
301295 * https://www.eff.org/issues/do-not-track
@@ -583,4 +577,18 @@ return JSON.stringify({
583577 return CCPAdata
584578 } ) ( )
585579
580+ } ;
581+
582+
583+ /**
584+ * IAB: Data Deletion Request Framework
585+ * https://github.com/InteractiveAdvertisingBureau/Data-Subject-Rights/blob/main/Data%20Deletion%20Request%20Framework.md
586+ */
587+ let iab_ddr = Promise . resolve ( fetchAndParse ( "/dsrdelete.json" , parseDSRdelete ) ) ;
588+
589+ return Promise . all ( [ iab_ddr ] ) . then ( ( [ iab_ddr ] ) => {
590+ return {
591+ ...sync_metrics ,
592+ ...{ iab_ddr : iab_ddr }
593+ } ;
586594} ) ;
You can’t perform that action at this time.
0 commit comments