encodeURIComponent
This commit is contained in:
parent
bb203a081c
commit
5da597d410
@ -87,7 +87,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function deleteTag(id) {
|
async function deleteTag(id) {
|
||||||
const res = await axios.delete('/api/{{.guildId}}/tags/' + encodeURI(id));
|
const res = await axios.delete('/api/{{.guildId}}/tags/' + encodeURIComponent(id));
|
||||||
if (res.status === 200 && res.data.success) {
|
if (res.status === 200 && res.data.success) {
|
||||||
const tr = document.getElementById(id);
|
const tr = document.getElementById(id);
|
||||||
tr.parentNode.removeChild(tr);
|
tr.parentNode.removeChild(tr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user