We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3a8750 commit 4a18f08Copy full SHA for 4a18f08
1 file changed
public/sw.js
@@ -218,3 +218,11 @@ self.addEventListener('message', (event) => {
218
});
219
220
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