mirror of
https://github.com/joelwmale/webhook-action.git
synced 2026-09-02 18:56:15 +08:00
Attempt to have code wait for request to finish
This commit is contained in:
Vendored
+3
-2
@@ -305,8 +305,9 @@ var Http = (function () {
|
||||
}
|
||||
Http.prototype.make = function (url, headers, body) {
|
||||
var _this = this;
|
||||
return new Promise(function () {
|
||||
fetch(url, _this.getOptions('post', headers, body));
|
||||
return new Promise(function (resolve, reject) {
|
||||
fetch(url, _this.getOptions('post', headers, body))
|
||||
.then(function (res) { return resolve(res); });
|
||||
});
|
||||
};
|
||||
Http.prototype.getOptions = function (method, headers, body) {
|
||||
|
||||
Reference in New Issue
Block a user