review fedback

This commit is contained in:
Kendall Werts
2020-01-23 13:47:19 -06:00
parent 5b8cfa14ae
commit 0447e54b1c
5 changed files with 33 additions and 36 deletions
+2 -2
View File
@@ -187,7 +187,7 @@ const Logic = {
};
// Handle old style rejection with null and also Promise.reject new style
try {
return browser.contextualIdentities.get(cookieStoreId) || defaultContainer;
return await browser.contextualIdentities.get(cookieStoreId) || defaultContainer;
} catch (e) {
return defaultContainer;
}
@@ -356,7 +356,7 @@ const Logic = {
},
getAssignmentObjectByContainer(userContextId) {
if (userContextId) {
if (!userContextId) {
return {};
}
return browser.runtime.sendMessage({