Recreate context after clearing context

This commit is contained in:
eyedeekay
2025-02-20 14:50:55 -05:00
parent c198bd1b7d
commit 3e11daf91f

View File

@ -317,6 +317,8 @@ async function onOpenedWindowCheck() {
if (tabs.length == 0 && context != 0) {
browser.contextualIdentities.remove(context.cookieStoreId);
}
// once we're done, re-create all the contexts
browser.contextualIdentities.query({}).then(onContextsGot, onContextsError);
}
async function checkTabs(context) {