Skip to content

Commit

Permalink
return true for 3pc support
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyapotti committed Mar 19, 2024
1 parent cbad09c commit 37d51f4
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/utils/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,16 +180,16 @@ export function are3PCSupported(): boolean {
const browserInfo = Bowser.parse(navigator.userAgent);
log.info(JSON.stringify(browserInfo), "current browser info");

let thirdPartyCookieSupport = true;
const thirdPartyCookieSupport = true;
// brave
if ((navigator as unknown as { brave: boolean })?.brave) {
thirdPartyCookieSupport = false;
}
// All webkit & gecko engine instances use itp (intelligent tracking prevention -
// https://webkit.org/tracking-prevention/#intelligent-tracking-prevention-itp)
if (browserInfo.engine.name === Bowser.ENGINE_MAP.WebKit || browserInfo.engine.name === Bowser.ENGINE_MAP.Gecko) {
thirdPartyCookieSupport = false;
}
// if ((navigator as unknown as { brave: boolean })?.brave) {
// thirdPartyCookieSupport = false;
// }
// // All webkit & gecko engine instances use itp (intelligent tracking prevention -
// // https://webkit.org/tracking-prevention/#intelligent-tracking-prevention-itp)
// if (browserInfo.engine.name === Bowser.ENGINE_MAP.WebKit || browserInfo.engine.name === Bowser.ENGINE_MAP.Gecko) {
// thirdPartyCookieSupport = false;
// }

return thirdPartyCookieSupport;
}
Expand Down

0 comments on commit 37d51f4

Please sign in to comment.