Added prettier (#661)
* Added prettier * Added prettier * Added prettier
This commit is contained in:
@@ -6,11 +6,11 @@ import { LastGoldenCookieState } from '../../Main/VariablesAndData';
|
||||
* This function creates the Favicon, it is called by CM.Main.DelayInit()
|
||||
*/
|
||||
export function CreateFavicon() {
|
||||
const Favicon = document.createElement('link');
|
||||
Favicon.id = 'CMFavicon';
|
||||
Favicon.rel = 'shortcut icon';
|
||||
Favicon.href = 'https://orteil.dashnet.org/cookieclicker/favicon.ico';
|
||||
document.getElementsByTagName('head')[0].appendChild(Favicon);
|
||||
const Favicon = document.createElement('link');
|
||||
Favicon.id = 'CMFavicon';
|
||||
Favicon.rel = 'shortcut icon';
|
||||
Favicon.href = 'https://orteil.dashnet.org/cookieclicker/favicon.ico';
|
||||
document.getElementsByTagName('head')[0].appendChild(Favicon);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -18,8 +18,14 @@ export function CreateFavicon() {
|
||||
* By relying on CM.Cache.spawnedGoldenShimmer it only changes for non-user spawned cookie
|
||||
*/
|
||||
export function UpdateFavicon() {
|
||||
if (CMOptions.Favicon === 1 && LastGoldenCookieState > 0) {
|
||||
if (CacheSpawnedGoldenShimmer.wrath) l('CMFavicon').href = 'https://aktanusa.github.io/CookieMonster/favicon/wrathCookie.ico';
|
||||
else l('CMFavicon').href = 'https://aktanusa.github.io/CookieMonster/favicon/goldenCookie.ico';
|
||||
} else l('CMFavicon').href = 'https://orteil.dashnet.org/cookieclicker/favicon.ico';
|
||||
if (CMOptions.Favicon === 1 && LastGoldenCookieState > 0) {
|
||||
if (CacheSpawnedGoldenShimmer.wrath)
|
||||
l('CMFavicon').href =
|
||||
'https://aktanusa.github.io/CookieMonster/favicon/wrathCookie.ico';
|
||||
else
|
||||
l('CMFavicon').href =
|
||||
'https://aktanusa.github.io/CookieMonster/favicon/goldenCookie.ico';
|
||||
} else
|
||||
l('CMFavicon').href =
|
||||
'https://orteil.dashnet.org/cookieclicker/favicon.ico';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user