Fix message naming for rice page and implement openRicePage method in theme marketplace components

This commit is contained in:
mr. M
2024-12-30 07:37:07 +01:00
parent 87976fc845
commit a2f29cc817
3 changed files with 11 additions and 3 deletions

View File

@@ -416,6 +416,9 @@
}
frame.call(this);
}
openRicePage({ id, name, author }) {
}
}
window.ZenRiceManager = ZenRiceManager;

View File

@@ -19,7 +19,7 @@ export class ZenThemeMarketplaceChild extends JSWindowActorChild {
}
const possibleRicePage = this.collectRiceMetadata();
if (possibleRicePage) {
this.sendAsyncMessage('ZenThemeMarketplace:RizePage', { data: possibleRicePage });
this.sendAsyncMessage('ZenThemeMarketplace:RicePage', { data: possibleRicePage });
return;
}
this.initiateThemeMarketplace();

View File

@@ -34,13 +34,18 @@ export class ZenThemeMarketplaceParent extends JSWindowActorParent {
this.checkForThemeUpdates();
break;
}
case 'ZenThemeMarketplace:RizePage': {
// TODO: Implement
case 'ZenThemeMarketplace:RicePage': {
this.openRicePage(this.browsingContext.topChromeWindow, message.data);
break;
}
}
}
openRicePage(window, data) {
console.info(this.browsingContext);
window.gZenThemeMarketplaceManager.openRicePage(data);
}
compareversion(version1, version2) {
var result = false;
if (typeof version1 !== 'object') {