[Polyfill > Request] Add bare logging with URL for plugin crash testing
This commit is contained in:
parent
1a7d927d9c
commit
3721a3e0f1
1 changed files with 3 additions and 1 deletions
|
@ -70,6 +70,7 @@ const request = (...args) => { // Main function
|
|||
}
|
||||
|
||||
// log('Polyfill > Request', options.method, options.url);
|
||||
console.log('[OpenAsar Request Polyfill]', options.url);
|
||||
|
||||
const listeners = {};
|
||||
|
||||
|
@ -107,6 +108,7 @@ const request = (...args) => { // Main function
|
|||
return ret;
|
||||
};
|
||||
|
||||
['get']
|
||||
// Method functions
|
||||
request.get = (url, callback) => request({ url: url, method: 'GET' }, callback);
|
||||
request.post = (url, callback) => request({ url: url, method: 'POST' }, callback);
|
||||
|
|
Loading…
Reference in a new issue