Advertisement
Guest User

Untitled

a guest
Feb 25th, 2017
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. Uncaught SyntaxError: Unexpected token v in JSON at position 0
  2. at JSON.parse (<anonymous>)
  3. at XMLHttpRequest.xhr.onreadystatechange (cart.js:64)
  4. xhr.onreadystatechange @ cart.js:64
  5.  
  6. xhr.onreadystatechange = function(){
  7. if(responded) return
  8. if(xhr.readyState == 4){
  9. responded = true
  10. if(xhr.status == 200) callback(null, JSON.parse(xhr.responseText))
  11. else callback(new Error(xhr.responseText))
  12. }
  13. }
  14.  
  15. if(xhr.status == 200) callback(null, JSON.parse(xhr.responseText))
  16.  
  17. JSON.parse('v');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement