Please move those 3 line to new method ```updateFavicon```