made some suggested changes

This commit is contained in:
Kendall Werts
2020-01-23 10:08:12 -06:00
parent 268c638508
commit 85c403bef5
10 changed files with 42 additions and 41 deletions
+8 -8
View File
@@ -39,7 +39,7 @@ const identityState = {
async remove(cookieStoreId) {
const storeKey = this.getContainerStoreKey(cookieStoreId);
return await this.area.remove([storeKey]);
return this.area.remove([storeKey]);
},
/*
@@ -107,13 +107,13 @@ const identityState = {
},
async updateUUID(cookieStoreId, uuid) {
if (cookieStoreId && uuid) {
const containerState = await this.storageArea.get(cookieStoreId);
containerState.macAddonUUID = uuid;
await this.storageArea.set(cookieStoreId, containerState);
return uuid;
}
throw new Error ("cookieStoreId or uuid missing");
if (!cookieStoreId || !uuid) {
throw new Error ("cookieStoreId or uuid missing");
}
const containerState = await this.storageArea.get(cookieStoreId);
containerState.macAddonUUID = uuid;
await this.storageArea.set(cookieStoreId, containerState);
return uuid;
},
async addUUID(cookieStoreId) {