mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
GPC Message (#15508)
* feat(gpc): warn user about enabling analytics * fix(gpc): style tweaks * fix(privacy): local storage doesn't understand Boolean * fix(gpc): do record if user has opted in * fix(privacy): don't flip flop if no value changed
This commit is contained in:
@@ -19,7 +19,7 @@ let analyticsReady = false;
|
||||
function _getConsentedUser () {
|
||||
const store = getStore();
|
||||
const user = store.state.user.data;
|
||||
if (!user?.preferences?.analyticsConsent || navigator.globalPrivacyControl) {
|
||||
if (!user?.preferences?.analyticsConsent) {
|
||||
return false;
|
||||
}
|
||||
return user;
|
||||
|
||||
Reference in New Issue
Block a user