Merge branch 'migrate-accounts-to-idb' into swn
This commit is contained in:
		@@ -29,8 +29,7 @@ export async function signout() {
 | 
			
		||||
	//#endregion
 | 
			
		||||
 | 
			
		||||
	//#region Remove push notification registration
 | 
			
		||||
	const registration = await navigator.serviceWorker.ready
 | 
			
		||||
	
 | 
			
		||||
	const registration = await navigator.serviceWorker.ready;
 | 
			
		||||
	const push = await registration.pushManager.getSubscription();
 | 
			
		||||
	if (!push) return;
 | 
			
		||||
	await fetch(`${apiUrl}/sw/unregister`, {
 | 
			
		||||
 
 | 
			
		||||
@@ -13,7 +13,7 @@ let idbAvailable = typeof window !== 'undefined' ? !!window.indexedDB : true;
 | 
			
		||||
 | 
			
		||||
if (idbAvailable) {
 | 
			
		||||
	try {
 | 
			
		||||
		await createStore('keyval-store', 'keyval')
 | 
			
		||||
		await createStore('keyval-store', 'keyval');
 | 
			
		||||
	} catch (e) {
 | 
			
		||||
		console.error('idb open error', e);
 | 
			
		||||
		idbAvailable = false;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user