syncs on first run

This commit is contained in:
Kendall Werts
2019-12-16 14:51:38 -06:00
parent f5993add6f
commit efb83255fd
2 changed files with 99 additions and 19 deletions
+14
View File
@@ -76,6 +76,20 @@ const identityState = {
return this.updateUUID(cookieStoreId, uuidv4());
},
async lookupCookieStoreId(macUUID) {
console.log("luCSI");
const macConfigs = await this.storageArea.area.get();
for(const key of Object.keys(macConfigs)) {
if (key.includes("identitiesState@@_")) {
if(macConfigs[key].macUUID === macUUID) {
console.log(key);
return key.replace(/^firefox-container-@@_/, "");
}
}
}
return false;
},
_createIdentityState() {
return {
hiddenTabs: [],