Advertisement
rodrigosan88

Untitled

Nov 19th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         public getUrlPjelegacy(){
  2.         let ret : string = "";
  3.         let pathArray = document.referrer.split('/');
  4.         if(pathArray.length > 1){
  5.             let protocol = pathArray[0];
  6.             let host = pathArray[2];
  7.             ret = protocol + '//' + host;
  8.         }
  9.        
  10.         return  ret;
  11.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement