mirror of
https://github.com/zen-browser/components.git
synced 2025-07-07 23:59:59 +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': {
|
||||
console.info('ZenThemeMarketplaceParent: Updating themes');
|
||||
const theme = message.data.theme;
|
||||
theme.enabled = true;
|
||||
const themes = await this.getThemes();
|
||||
themes[theme.id] = theme;
|
||||
this.updateThemes(themes);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue