From 8664a76cbed7a148c6f1af6c415f2dcf357fc1c6 Mon Sep 17 00:00:00 2001 From: Renz Maban Date: Tue, 16 Jul 2024 18:11:53 +0800 Subject: [PATCH] update default audience --- lib/kits/incito-publication/bootstrapper.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/kits/incito-publication/bootstrapper.ts b/lib/kits/incito-publication/bootstrapper.ts index 7e6c752a..7d6f2fec 100644 --- a/lib/kits/incito-publication/bootstrapper.ts +++ b/lib/kits/incito-publication/bootstrapper.ts @@ -88,15 +88,15 @@ export default class Bootstrapper { feature = match[0] !== undefined ? match[0].replace('audience=', '').split(',') - : []; + : ['none']; } else if (localStorage.getItem('audience') !== null) { - feature = localStorage.getItem('audience')?.split(',') || []; + feature = localStorage.getItem('audience')?.split(',') || ['none']; } else { const cookie = regex.exec(document.cookie) || []; feature = cookie[0] !== undefined ? cookie[0].replace('audience=', '').split(',') - : []; + : ['none']; } return feature;