Hi,
I am trying to change the favicon icon for my game page. I found no option in the editor to change the favicon then I tried using JS, In this approach, when the page loads, the first playcanvas favicon icon appears, and then later my icon appears.
var link = document.querySelector("link[rel~='icon']");
if (!link) {
link = document.createElement('link');
link.rel = 'icon';
document.getElementsByTagName('head')[0].appendChild(link);
}
link.href = "My Icon Link" ;