From 5eac87695304128d074a7a1d0111012a486f467b Mon Sep 17 00:00:00 2001 From: Greg Kempe Date: Mon, 19 Feb 2024 15:41:25 +0200 Subject: [PATCH] don't use deprecated function --- peachjam/js/peachjam.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}`; }