forked from DebaucheryLibrarian/traxxx
Not parsing HTML with jsdom when using http module directly to save memory. Added loading ellipsis to release grid pages.
This commit is contained in:
@@ -521,7 +521,11 @@ function extractAll(htmlValue, selector, options) {
|
||||
async function request(method = 'get', urlValue, body, selector, headers, options, queryAll = false) {
|
||||
const res = await (method === 'post'
|
||||
? http.post(urlValue, body, { ...options, headers })
|
||||
: http[method](urlValue, { ...options, headers }));
|
||||
: http[method](urlValue, {
|
||||
...options,
|
||||
headers,
|
||||
parse: true,
|
||||
}));
|
||||
|
||||
if (res.ok) {
|
||||
const item = queryAll
|
||||
|
||||
Reference in New Issue
Block a user