UNPKG

giveth-bridge

Version:

Mainnet -> sidechain Giveth Bridge.

18 lines (17 loc) 429 B
"use strict"; // Add `finally()` to `Promise.prototype` Promise.prototype.finally = function (onFinally) { return this.then( /* onFulfilled */ function (res) { return Promise.resolve(onFinally()).then(function () { return res; }); }, /* onRejected */ function (err) { return Promise.resolve(onFinally()).then(function () { throw err; }); }); };