Ad
  • Custom User Avatar

    Use console.log() to see the inputs for which your code fails, then try to find what they all have in common.

    Your code can't handle file endings. So any url with .html or .php at the end will fail.