[Polyfill > Request] Add bare logging with URL for plugin crash testing

This commit is contained in:
Ducko 2022-01-03 14:31:38 +00:00
parent 1a7d927d9c
commit 3721a3e0f1

View file

@ -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);