forked from MapComplete/MapComplete
		
	
		
			
	
	
		
			12 lines
		
	
	
	
		
			370 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
		
		
			
		
	
	
			12 lines
		
	
	
	
		
			370 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
|  | import { Store, UIEventSource } from "../../Logic/UIEventSource" | ||
|  | import Hash from "../../Logic/Web/Hash" | ||
|  | 
 | ||
|  | export default class StudioHashSetter { | ||
|  |     constructor(mode: "layer" | "theme", tab: Store<number>, name: Store<string>) { | ||
|  |         tab.mapD(tab => { | ||
|  |                 Hash.hash.setData(mode + "/" + name.data + "/" + tab) | ||
|  |             } | ||
|  |             , [name]) | ||
|  |     } | ||
|  | } |