Skip to content

Commit

Permalink
update default audience
Browse files Browse the repository at this point in the history
  • Loading branch information
renz-maban committed Jul 16, 2024
1 parent 4f67293 commit 8664a76
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/kits/incito-publication/bootstrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8664a76

Please sign in to comment.