SHARE
TWEET

Untitled

rodrigosan88 Nov 19th, 2018 70 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.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top