Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. /*
  2. * If you use facebook's graph api, a url to cover photo will arrive compressed.
  3. * This deletes the portion of the url that constrains the photo, giving you
  4. * the url to the full resolution picture.
  5. */
  6. const getFullResPic = (url) => url.replace(/\/[a-z][0-9]+x[0-9]+\//, '/')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement