remove unnecessary toString()

pull/216/head
Aevann 2023-10-15 18:48:56 +03:00
parent 3719ecb161
commit 5fc27db8d4
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ function view_more(t, pid, sort, offset) {
btn.innerHTML = "Requesting...";
const form = new FormData();
const xhr = new XMLHttpRequest();
ids = t.dataset.ids.toString().replace(/[\[\] ]/g, '')
ids = t.dataset.ids.replace(/[\[\] ]/g, '')
xhr.open("get", `/view_more/${pid}/${sort}/${offset}?ids=${ids}`);
xhr.setRequestHeader('xhr', 'xhr');
xhr.onload=function(){