mirror of
				https://github.com/TitanEmbeds/Titan.git
				synced 2025-11-04 07:47:10 +01:00 
			
		
		
		
	Prefill username field for guests with query param, Resolves #43
This commit is contained in:
		@@ -234,6 +234,10 @@
 | 
			
		||||
            }
 | 
			
		||||
        });
 | 
			
		||||
        
 | 
			
		||||
        if (getParameterByName("username")) {
 | 
			
		||||
            $("#custom_username_field").val(getParameterByName("username"));
 | 
			
		||||
        }
 | 
			
		||||
        
 | 
			
		||||
        if (getParameterByName("forcefocus") == "1") {
 | 
			
		||||
            if (document.hasFocus()) {
 | 
			
		||||
                primeEmbed();
 | 
			
		||||
 
 | 
			
		||||
@@ -42,6 +42,11 @@
 | 
			
		||||
                      <hr>
 | 
			
		||||
                      <em>Eg: theme=DiscordDark</em>
 | 
			
		||||
                    </li>
 | 
			
		||||
                    <li class="collection-item">
 | 
			
		||||
                      <strong>username=<string></strong> <br>
 | 
			
		||||
                      Prefills the guest username field with the given username. <br>
 | 
			
		||||
                      <em>Eg: username=Rainbow%20Dash</em>
 | 
			
		||||
                    </li>
 | 
			
		||||
                </ul>
 | 
			
		||||
            </div>
 | 
			
		||||
          </div>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user