add comment
This commit is contained in:
		
							parent
							
								
									52840faa85
								
							
						
					
					
						commit
						418d936044
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -91,6 +91,8 @@ export class Storage<T extends StateDef> {
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		this.pizzaxChannel.addEventListener('message', ({ where, key, value, userId }) => {
 | 
							this.pizzaxChannel.addEventListener('message', ({ where, key, value, userId }) => {
 | 
				
			||||||
 | 
								// アカウント変更すればunisonReloadが効くため、このreturnが発火することは
 | 
				
			||||||
 | 
								// まずないと思うけど一応弾いておく
 | 
				
			||||||
			if (where === 'deviceAccount' && !($i && userId !== $i.id)) return;
 | 
								if (where === 'deviceAccount' && !($i && userId !== $i.id)) return;
 | 
				
			||||||
			this.state[key] = value;
 | 
								this.state[key] = value;
 | 
				
			||||||
			this.reactiveState[key].value = value;
 | 
								this.reactiveState[key].value = value;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue