You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems it can't, but you can write your own wrapped function like following: const jsonpFetch = (url, options) => new Promise((resolve, reject) => jsonp(url, options, (err, data) => err ? reject(err) : resolve(data)));
...or just use some another jsonp package.
Reacted by Shawn Mitchell, Julien Le Coupanec, Cassio Cardoso, Oskar Okuno and jtrslar
Activity
DigitalBrainJS commentedon Dec 4, 2018
Seems it can't, but you can write your own wrapped function like following:
const jsonpFetch = (url, options) => new Promise((resolve, reject) => jsonp(url, options, (err, data) => err ? reject(err) : resolve(data)));...or just use some another jsonp package.