Advertisement
UlrichC

Javascript Help

Feb 19th, 2020
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. chrome.identity.getProfileUserInfo((userInfo) => {
  2. accountInformation = userInfo
  3. //This alert shows the data
  4. alert('Account Information in JSON format' + accountInformation)
  5. });
  6.  
  7. //this always has the variable undefined. Unfortunately this is where I need the variable for other parts of the script.
  8. alert('Account Information in JSON format' + accountInformation)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement