mirror of
https://github.com/zen-browser/components.git
synced 2025-07-07 16:35:30 +02:00
Refactor ZenPinnedTabManager and ZenPinnedTabsStorage initialization
This commit is contained in:
parent
9d41110b8b
commit
2adc19bc21
2 changed files with 6 additions and 3 deletions
|
@ -41,8 +41,7 @@
|
|||
async init() {
|
||||
this.observer = new ZenPinnedTabsObserver();
|
||||
await ZenPinnedTabsStorage.init();
|
||||
// TODO: Figure out if this is even needed - for now it's commented out
|
||||
// await SessionStore.promiseInitialized;
|
||||
await SessionStore.promiseInitialized;
|
||||
await this._refreshPinnedTabs();
|
||||
this._initClosePinnedTabShortcut();
|
||||
this._insertItemsIntoTabContextMenu();
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
var ZenPinnedTabsStorage = {
|
||||
async init() {
|
||||
console.log('ZenPinnedTabsStorage: Initializing...');
|
||||
try {
|
||||
await this._ensureTable();
|
||||
} catch (e) {
|
||||
console.warn('ZenPinnedTabsStorage: Failed to initialize', e);
|
||||
}
|
||||
},
|
||||
|
||||
async _ensureTable() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue