ESP32S3 with Camera only works connected to computer

I am working with the code found here:

for video streaming. When I compile and upload the code to the XIAO ESP32S3, the video streams perfectly. When I disconnect from the computer and plug in to a USB power source, I am unable to connect to the web page. Thoughts?

After further investigation, the problem lies in this line of code:


The setup code will only execute if a serial connection is detected which is not available if power only is provided over USB. Commenting out this line of code fixes the problem.