Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function galleryGet() {
- const REDDIT_URL = `https://www.reddit.com/r/aww.json?jsonp=?`;
- return new Promise((resolve, reject) => {
- $.ajax({
- url: REDDIT_URL,
- dataType: 'jsonp'
- })
- .done(resolve)
- .fail(reject);
- })
- }
Add Comment
Please, Sign In to add comment