working with tests

This commit is contained in:
Kendall Werts
2020-01-07 14:14:19 -06:00
parent d033292784
commit f7b20f97b8
5 changed files with 107 additions and 44 deletions
+5 -1
View File
@@ -11,6 +11,10 @@ const identityState = {
const storeKey = this.getContainerStoreKey(cookieStoreId);
const storageResponse = await this.area.get([storeKey]);
if (storageResponse && storeKey in storageResponse) {
if (!storageResponse[storeKey].macAddonUUID){
await identityState.addUUID(cookieStoreId);
return this.get(cookieStoreId);
}
return storageResponse[storeKey];
}
const identities = await browser.contextualIdentities.query({});
@@ -91,7 +95,7 @@ const identityState = {
const containerState = await this.storageArea.get(cookieStoreId);
containerState.macAddonUUID = uuid;
await this.storageArea.set(cookieStoreId, containerState);
return;
return uuid;
}
throw new Error ("cookieStoreId or uuid missing");
},