mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-24 14:07:03 +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 (getParameterByName("forcefocus") == "1") {
|
||||||
if (document.hasFocus()) {
|
if (document.hasFocus()) {
|
||||||
primeEmbed();
|
primeEmbed();
|
||||||
|
@ -42,6 +42,11 @@
|
|||||||
<hr>
|
<hr>
|
||||||
<em>Eg: theme=DiscordDark</em>
|
<em>Eg: theme=DiscordDark</em>
|
||||||
</li>
|
</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>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user