mirror of
https://github.com/zen-browser/desktop.git
synced 2026-01-28 23:56:11 +00:00
Fix message naming for rice page and implement openRicePage method in theme marketplace components
This commit is contained in:
@@ -416,6 +416,9 @@
|
||||
}
|
||||
frame.call(this);
|
||||
}
|
||||
|
||||
openRicePage({ id, name, author }) {
|
||||
}
|
||||
}
|
||||
|
||||
window.ZenRiceManager = ZenRiceManager;
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user