Fix favicon not being reset with no GC left

This commit is contained in:
Chorizorro
2020-12-05 23:14:12 +01:00
parent 15d467992d
commit 87a85bfc59
3 changed files with 6 additions and 6 deletions

View File

@@ -1006,7 +1006,7 @@ CM.Disp.CreateFavicon = function() {
* By relying on CM.Cache.spawnedGoldenShimmer it only changes for non-user spawned cookie
*/
CM.Disp.UpdateFavicon = function() {
if (CM.Config.Favicon == 1) {
if (CM.Config.Favicon == 1 && CM.Main.lastGoldenCookieState > 0) {
if (CM.Cache.spawnedGoldenShimmer.wrath) CM.Disp.Favicon.href = 'https://aktanusa.github.io/CookieMonster/favicon/wrathCookie.ico';
else CM.Disp.Favicon.href = 'https://aktanusa.github.io/CookieMonster/favicon/goldenCookie.ico';
}