mirror of
https://github.com/zen-browser/components.git
synced 2025-07-08 09:00:00 +02:00
Refactor ZenThemeMarketplaceParent to enable the installed theme
This commit is contained in:
parent
e5b3bc3bda
commit
ff7a75998b
1 changed files with 1 additions and 0 deletions
|
@ -8,6 +8,7 @@ export class ZenThemeMarketplaceParent extends JSWindowActorParent {
|
||||||
case 'ZenThemeMarketplace:InstallTheme': {
|
case 'ZenThemeMarketplace:InstallTheme': {
|
||||||
console.info('ZenThemeMarketplaceParent: Updating themes');
|
console.info('ZenThemeMarketplaceParent: Updating themes');
|
||||||
const theme = message.data.theme;
|
const theme = message.data.theme;
|
||||||
|
theme.enabled = true;
|
||||||
const themes = await this.getThemes();
|
const themes = await this.getThemes();
|
||||||
themes[theme.id] = theme;
|
themes[theme.id] = theme;
|
||||||
this.updateThemes(themes);
|
this.updateThemes(themes);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue