From a04b5c30b6f81dd00344226f2b6bb7004b6dd63e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristijan=20Ribari=C4=87?= Date: Sun, 3 Nov 2024 20:29:55 +0100 Subject: [PATCH] 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. --- src/ZenPinnedTabManager.mjs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ZenPinnedTabManager.mjs b/src/ZenPinnedTabManager.mjs index 7f22e77..c626bfd 100644 --- a/src/ZenPinnedTabManager.mjs +++ b/src/ZenPinnedTabManager.mjs @@ -49,7 +49,6 @@ async initTabs() { await ZenPinnedTabsStorage.init(); - await SessionStore.promiseInitialized; await this._refreshPinnedTabs(); }