mirror of
https://github.com/bitwarden/browser
synced 2025-12-22 11:13:46 +00:00
move google analytics to measurements protocol so that we can get rid of custom CSP
This commit is contained in:
@@ -8,10 +8,18 @@ function initAppIdService() {
|
||||
throw 'callback function required';
|
||||
}
|
||||
|
||||
makeAndGetAppId('appId');
|
||||
makeAndGetAppId('appId', callback);
|
||||
};
|
||||
|
||||
function makeAndGetAppId(key) {
|
||||
AppIdService.prototype.getAnonymousAppId = function (callback) {
|
||||
if (!callback || typeof callback !== 'function') {
|
||||
throw 'callback function required';
|
||||
}
|
||||
|
||||
makeAndGetAppId('anonymousAppId', callback);
|
||||
};
|
||||
|
||||
function makeAndGetAppId(key, callback) {
|
||||
chrome.storage.local.get(key, function (obj) {
|
||||
if (obj && obj[key]) {
|
||||
callback(obj[key]);
|
||||
|
||||
Reference in New Issue
Block a user