Skip to content

Commit 4a18f08

Browse files
committed
fix: sw
1 parent c3a8750 commit 4a18f08

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

public/sw.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,3 +218,11 @@ self.addEventListener('message', (event) => {
218218
});
219219
});
220220
});
221+
} else if (event.data && event.data.type === 'CLEAR_TOKEN') {
222+
openTokenDB().then(db => {
223+
const transaction = db.transaction([TOKEN_STORE], 'readwrite');
224+
const store = transaction.objectStore(TOKEN_STORE);
225+
store.delete('github-token');
226+
});
227+
}
228+
});

0 commit comments

Comments
 (0)