AR webcam doesn't autofocus

I’m learning WebAR, and on my device the camera isn’t focusing.
Does this happen to anyone else?
BTW my code is here, and it is a starter pack for Angular and AR.