fix broken lnc localstorage namespace since 5c593ce
This commit is contained in:
		
							parent
							
								
									7121317990
								
							
						
					
					
						commit
						93e0b3ed6e
					
				| @ -16,8 +16,8 @@ const mutex = new Mutex() | ||||
| async function getLNC ({ me }) { | ||||
|   if (window.lnc) return window.lnc | ||||
|   // backwards compatibility: migrate to new storage key
 | ||||
|   if (me) migrateLocalStorage('lnc-web:default', `lnc-web:${me.id}`) | ||||
|   window.lnc = new LNC({ namespace: me?.id }) | ||||
|   if (me) migrateLocalStorage('lnc-web:default', `lnc-web:stacker:${me.id}`) | ||||
|   window.lnc = new LNC({ namespace: me?.id ? `stacker:${me.id}` : undefined }) | ||||
|   return window.lnc | ||||
| } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user