diff --git a/modules/kargoBidAdapter.js b/modules/kargoBidAdapter.js index 4f594c2856f..4d2190a29f1 100644 --- a/modules/kargoBidAdapter.js +++ b/modules/kargoBidAdapter.js @@ -76,8 +76,8 @@ export const spec = { let nameEquals = `${name}=`; let cookies = document.cookie.split(';'); - for (let key in cookies) { - let cookie = cookies[key]; + for (let i = 0; i < cookies.length; i++) { + let cookie = cookies[i]; while (cookie.charAt(0) === ' ') { cookie = cookie.substring(1, cookie.length); }