diff --git a/index.html b/index.html index e7e4510..9dd9ab7 100644 --- a/index.html +++ b/index.html @@ -34,24 +34,23 @@ }); }); - + // Change favicon + var favicon = document.getElementById('favicon'); + var newFavicon = document.createElement('link'); + newFavicon.id = 'favicon'; + newFavicon.rel = 'icon'; + newFavicon.href = 'new_favicon.ico'; + + favicon.parentNode.replaceChild(newFavicon, favicon); + } + }); +