mirror of
https://github.com/zen-browser/components.git
synced 2025-07-07 21:29:59 +02:00
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:
parent
af5f4f97d7
commit
a04b5c30b6
1 changed files with 0 additions and 1 deletions
|
@ -49,7 +49,6 @@
|
||||||
|
|
||||||
async initTabs() {
|
async initTabs() {
|
||||||
await ZenPinnedTabsStorage.init();
|
await ZenPinnedTabsStorage.init();
|
||||||
await SessionStore.promiseInitialized;
|
|
||||||
await this._refreshPinnedTabs();
|
await this._refreshPinnedTabs();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue