commit
1774c531a2
1 changed files with 14 additions and 0 deletions
14
index.js
14
index.js
|
@ -83,6 +83,17 @@ const ContainerService = {
|
||||||
});
|
});
|
||||||
|
|
||||||
ss.storage.savedConfiguration = object;
|
ss.storage.savedConfiguration = object;
|
||||||
|
|
||||||
|
// Maybe rename the Banking container.
|
||||||
|
if (prefService.get("privacy.userContext.enabled") !== true) {
|
||||||
|
const identity = ContextualIdentityService.getIdentityFromId(3);
|
||||||
|
if (identity && identity.l10nID === "userContextBanking.label") {
|
||||||
|
ContextualIdentityService.update(identity.userContextId,
|
||||||
|
"Finance",
|
||||||
|
identity.icon,
|
||||||
|
identity.color);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Enabling preferences
|
// Enabling preferences
|
||||||
|
@ -850,6 +861,9 @@ const ContainerService = {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Note: We cannot go back renaming the Finance identity back to Banking:
|
||||||
|
// the locale system doesn't work with renamed containers.
|
||||||
|
|
||||||
// Restore the customizable container panel.
|
// Restore the customizable container panel.
|
||||||
const widget = CustomizableWidgets.find(widget => widget.id === "containers-panelmenu");
|
const widget = CustomizableWidgets.find(widget => widget.id === "containers-panelmenu");
|
||||||
if (widget) {
|
if (widget) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue