Refactor ZenPinnedTabManager and ZenPinnedTabsStorage initialization

This commit is contained in:
mr. M 2024-11-03 16:46:22 +01:00
parent 9d41110b8b
commit 2adc19bc21
No known key found for this signature in database
GPG key ID: CBD57A2AEDBDA1FB
2 changed files with 6 additions and 3 deletions

View file

@ -1,7 +1,11 @@
var ZenPinnedTabsStorage = {
async init() {
console.log('ZenPinnedTabsStorage: Initializing...');
await this._ensureTable();
try {
await this._ensureTable();
} catch (e) {
console.warn('ZenPinnedTabsStorage: Failed to initialize', e);
}
},
async _ensureTable() {