forked from MapComplete/MapComplete
		
	I should have commited sooner...
This commit is contained in:
		
							parent
							
								
									2685b6e734
								
							
						
					
					
						commit
						16612b10ef
					
				
					 35 changed files with 570 additions and 177 deletions
				
			
		| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
 * Wraps the query parameters into UIEventSources
 | 
			
		||||
 */
 | 
			
		||||
import {UIEventSource} from "../UIEventSource";
 | 
			
		||||
import Hash from "./Hash";
 | 
			
		||||
 | 
			
		||||
export class QueryParameters {
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -57,7 +58,7 @@ export class QueryParameters {
 | 
			
		|||
 | 
			
		||||
            parts.push(encodeURIComponent(key) + "=" + encodeURIComponent(QueryParameters.knownSources[key].data))
 | 
			
		||||
        }
 | 
			
		||||
        history.replaceState(null, "", "?" + parts.join("&"));
 | 
			
		||||
        history.replaceState(null, "", "?" + parts.join("&") + "#" + Hash.Get().data);
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue