mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 09:13:33 +00:00
i18n disable google analytics
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
i18nService) {
|
||||
var gaKey = 'disableGa';
|
||||
|
||||
utilsService.initListSectionItemListeners($(document), angular);
|
||||
$scope.disableGa = false;
|
||||
$scope.i18n = i18nService;
|
||||
|
||||
@@ -88,11 +89,15 @@
|
||||
}
|
||||
else {
|
||||
// disable
|
||||
$analytics.eventTrack('Disabled Google Analytics');
|
||||
obj[gaKey] = true;
|
||||
}
|
||||
|
||||
chrome.storage.local.set(obj, function () {
|
||||
$scope.disableGa = obj[gaKey];
|
||||
if (!obj[gaKey]) {
|
||||
$analytics.eventTrack('Enabled Google Analytics');
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user