From c6dac0bb96e00b594ab847b6eba300d114b599e9 Mon Sep 17 00:00:00 2001 From: FrankRua Date: Mon, 21 Mar 2022 18:51:00 -0400 Subject: [PATCH] function updates --- src/helpers/heritage-integration-helper.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/helpers/heritage-integration-helper.js b/src/helpers/heritage-integration-helper.js index 01950fdce..010d1f1cb 100644 --- a/src/helpers/heritage-integration-helper.js +++ b/src/helpers/heritage-integration-helper.js @@ -103,7 +103,7 @@ export function isConceptSessionStillActive() { // --------- PRIVATE FUNCTIONS --------- /* Start cookie related functions */ -export function getConceptCookie() { +function getConceptCookie() { const cookieJson = document.cookie ?.split("; ") ?.find(row => row.startsWith(`${cookieNames.CONCEPT_SESSION_INFO}=`)) @@ -132,11 +132,11 @@ function setConceptCookieProperties(properties) { } } -// function deleteHeritageCookie() { -// // If this cookie is ever created from the concept funnel, will need to add another -// // line with the path=/fmg/ -// document.cookie = `${cookieNames.CONCEPT_SESSION_INFO}=; Max-Age=0; path=/; domain=${location.hostname}`; -// } +function deleteConceptCookie() { + // If this cookie is ever created from the concept funnel, will need to add another + // line with the path=/fmg/ + document.cookie = `${cookieNames.CONCEPT_SESSION_INFO}=; Max-Age=0; path=/; domain=${location.hostname}`; +} /* End cookie related functions */