andrew4582

getSecureUrl

Feb 10th, 2012
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function getSecureUrl (a) {
  2.         if (a.indexOf("http:") == 0)
  3.               return a.replace("http:", "https:");
  4.         return a
  5.     },
Advertisement
Add Comment
Please, Sign In to add comment