Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * If you use facebook's graph api, a url to cover photo will arrive compressed.
- * This deletes the portion of the url that constrains the photo, giving you
- * the url to the full resolution picture.
- */
- const getFullResPic = (url) => url.replace(/\/[a-z][0-9]+x[0-9]+\//, '/')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement