mirror of
https://github.com/zen-browser/components.git
synced 2025-07-08 05:29:58 +02:00
Refactor ZenGlanceManager and ZenThemesImporter classes
This commit is contained in:
parent
e782d724cd
commit
01905fa4e4
5 changed files with 174 additions and 0 deletions
|
@ -0,0 +1,19 @@
|
|||
|
||||
{
|
||||
function registerWindowActors() {
|
||||
// TODO: Only if the pref is enabled
|
||||
gZenActorsManager.addJSWindowActor("ZenGlance", {
|
||||
parent: {
|
||||
esModuleURI: "chrome://browser/content/zen-components/actors/ZenGlanceParent.sys.mjs",
|
||||
},
|
||||
child: {
|
||||
esModuleURI: "chrome://browser/content/zen-components/actors/ZenGlanceChild.sys.mjs",
|
||||
events: {
|
||||
DOMContentLoaded: {},
|
||||
},
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
registerWindowActors();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue