swapped cookieStoreId and storekey

This commit is contained in:
Kendall Werts 2020-01-24 17:02:29 -06:00
parent 0447e54b1c
commit 53baee1d5c

View file

@ -13,7 +13,7 @@ const identityState = {
if (storageResponse && storeKey in storageResponse) { if (storageResponse && storeKey in storageResponse) {
if (!storageResponse[storeKey].macAddonUUID){ if (!storageResponse[storeKey].macAddonUUID){
storageResponse[storeKey].macAddonUUID = uuidv4(); storageResponse[storeKey].macAddonUUID = uuidv4();
await this.set(cookieStoreId, storageResponse[cookieStoreId]); await this.set(cookieStoreId, storageResponse[storeKey]);
} }
return storageResponse[storeKey]; return storageResponse[storeKey];
} }
@ -67,7 +67,6 @@ const identityState = {
await this.remove(cookieStoreId); await this.remove(cookieStoreId);
continue; continue;
} }
console.log(macConfigs, configKey);
if (!macConfigs[configKey].macAddonUUID) { if (!macConfigs[configKey].macAddonUUID) {
await identityState.storageArea.get(cookieStoreId); await identityState.storageArea.get(cookieStoreId);
} }