forked from DebaucheryLibrarian/traxxx
Added configurable proxy to HTTP module (also used by qu). Added network and site URL to search documents.
This commit is contained in:
@@ -287,7 +287,7 @@ function extractAll(htmlValue, selector) {
|
||||
return initAll(window.document, selector, window);
|
||||
}
|
||||
|
||||
async function get(urlValue, selector, headers, queryAll = false) {
|
||||
async function get(urlValue, selector, headers, options, queryAll = false) {
|
||||
const res = await http.get(urlValue, {
|
||||
headers,
|
||||
});
|
||||
@@ -315,8 +315,8 @@ async function get(urlValue, selector, headers, queryAll = false) {
|
||||
};
|
||||
}
|
||||
|
||||
async function getAll(urlValue, selector, headers) {
|
||||
return get(urlValue, selector, headers, true);
|
||||
async function getAll(urlValue, selector, headers, options) {
|
||||
return get(urlValue, selector, headers, options, true);
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
||||
Reference in New Issue
Block a user