diff --git a/peachjam/js/peachjam.ts b/peachjam/js/peachjam.ts index 22539d51c..474946c7c 100644 --- a/peachjam/js/peachjam.ts +++ b/peachjam/js/peachjam.ts @@ -186,7 +186,7 @@ class PeachJam { for (let i = 0; i < cookies.length; i++) { const cookie = cookies[i]; const eqPos = cookie.indexOf('='); - const name = eqPos > -1 ? cookie.substr(0, eqPos) : cookie; + const name = eqPos > -1 ? cookie.substring(0, eqPos) : cookie; if (name.trim().startsWith('_ga')) { document.cookie = `${name}=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/;domain=.${window.location.hostname}`; }