use internal http request

This commit is contained in:
pypy
2020-11-07 20:22:30 +09:00
parent 77558f8835
commit f4d054ea49
6 changed files with 243 additions and 58 deletions

View File

@@ -0,0 +1,26 @@
// requires binding of WebApi
class WebApiService {
clearCookies() {
return WebApi.ClearCookies();
}
execute(options) {
return new Promise((resolve, reject) => {
WebApi.Execute(options, (err, response) => {
if (err !== null) {
reject(err);
return;
}
resolve(response);
});
});
}
}
var self = new WebApiService();
export {
self as default,
WebApiService
};