Favicon on browser tab (desktop)

Hello everyone! I have been reading all of the posts about changing the favicons and I have been able to get everything to work on the mobile. However, the tab on the desktop is just simply not working

Here is my code posted in Javascript. Please let me know if you can see any errors that I should fix to get it to work?