Integrate Weave service into ZenWorkspacesStorage and update bookmarkProperties.xhtml for localization and styling

This commit is contained in:
mr. M
2025-01-01 19:42:48 +01:00
parent 533533b639
commit 72a7a6b3c8
2 changed files with 9 additions and 7 deletions

View File

@@ -4,6 +4,7 @@ var ZenWorkspacesStorage = {
async init() {
ChromeUtils.defineESModuleGetters(this.lazy, {
PlacesUtils: "resource://gre/modules/PlacesUtils.sys.mjs",
Weave: "resource://services-sync/main.sys.mjs",
});
await this._ensureTable();
@@ -65,11 +66,10 @@ var ZenWorkspacesStorage = {
CREATE INDEX IF NOT EXISTS idx_zen_workspaces_changes_uuid ON zen_workspaces_changes(uuid)
`);
if (!Weave.Service.engineManager.get('workspaces')) {
Weave.Service.engineManager.register(ZenWorkspacesEngine);
if (!this.lazy.Weave.Service.engineManager.get('workspaces')) {
this.lazy.Weave.Service.engineManager.register(ZenWorkspacesEngine);
await ZenWorkspacesStorage.migrateWorkspacesFromJSON();
}
});
},