feat(zen-components): Remove unnecessary SessionStore dependency

This commit removes the unnecessary dependency on the `SessionStore` in the `ZenPinnedTabManager`.

The `SessionStore.promiseInitialized` was being awaited before refreshing pinned tabs, but this was not necessary. The pinned tab storage is initialized independently and does not rely on the session store.

This change improves the efficiency of the code and reduces the number of dependencies.
This commit is contained in:
Kristijan Ribarić 2024-11-03 20:29:55 +01:00
parent af5f4f97d7
commit a04b5c30b6

View file

@ -49,7 +49,6 @@
async initTabs() { async initTabs() {
await ZenPinnedTabsStorage.init(); await ZenPinnedTabsStorage.init();
await SessionStore.promiseInitialized;
await this._refreshPinnedTabs(); await this._refreshPinnedTabs();
} }