Merge pull request #262 from bakulf/defaultContainer
Default Containers re-created if the addon is installed/enabled - iss…
This commit is contained in:
commit
6644612f33
1 changed files with 11 additions and 0 deletions
11
index.js
11
index.js
|
@ -139,6 +139,17 @@ const ContainerService = {
|
||||||
identity.color);
|
identity.color);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Let's create the default containers in case there are none.
|
||||||
|
if (prefService.get("privacy.userContext.enabled") !== true &&
|
||||||
|
ss.storage.savedConfiguration.preInstalledIdentities.length === 0) {
|
||||||
|
// Note: we have to create them in this way because there is no way to
|
||||||
|
// reuse the same ID and the localized strings.
|
||||||
|
ContextualIdentityService.create("Personal", "fingerprint", "blue");
|
||||||
|
ContextualIdentityService.create("Work", "briefcase", "orange");
|
||||||
|
ContextualIdentityService.create("Finance", "dollar", "green");
|
||||||
|
ContextualIdentityService.create("Shopping", "cart", "pink");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Enabling preferences
|
// Enabling preferences
|
||||||
|
|
Loading…
Add table
Reference in a new issue