We have a Chat button on our community page using which user can communicate with Agents for their issues.
User can use the community page in normal mode as well as in incognito mode. But with latest update for chrome(Version 84) to make default option as "BLock third-party cookies in incognito mode" ,
when user tries to use the chat from incognito mode it receives following exception
It works for all other browser except chrome V-84. But when "Allow all cookies" is set, then all works fine in chrome V-84, from user prospective we don't want our users to go to this setting and enable this option and then use this Chat feature in incognito mode, please advise if we can update this browser setting using LWC while user tries to use this feature in incognito mode or is there any other way to troubleshoot this issue.
To check if user is in incognito mode we tried to use
navigator but it didn't have element what we are looking for , when code execution happens through console directly it works fine but when we had added code in LWC component and tried to debug same, it returned following result.