Closed jhadev closed 2 years ago
changed this code to avoid empty arrays without objects with 'name' property
const scripts = { firstParty: [{ name: "no data" }], thirdParty: [{ name: "no data" }], }; if (first.length) { scripts.firstParty = first; } if (third.length) { scripts.thirdParty = third; } return scripts
Tested by running on apple.com which has no third party scripts. Note timing script does not fail.
Previous snippet caused this error on apple.com
Cleaned up .gitignore, only beta and .DS_Store are in there now.
changed this code to avoid empty arrays without objects with 'name' property
Tested by running on apple.com which has no third party scripts. Note timing script does not fail.
Previous snippet caused this error on apple.com