mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-23 21:47:04 +01:00
Prefill username field for guests with query param, Resolves #43
This commit is contained in:
parent
a0a0f01655
commit
9e494f3808
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user