Tighten up sunglasses reveal conditions.
This will make it quite a bit more rare, but I don't like coming back to the page after being tabbed away and suddenly getting the sunglasses since it triggered some time ago. You've got to earn them. You heard me right, I leave my own homepage open in the background.
This commit is contained in:
parent
694d5a8bf8
commit
36f7dd0eca
1 changed files with 1 additions and 1 deletions
|
@ -1128,7 +1128,7 @@ function splash_fade_in()
|
||||||
{
|
{
|
||||||
HEADLINE_SPLASH.classList.remove("shrink_out");
|
HEADLINE_SPLASH.classList.remove("shrink_out");
|
||||||
const new_text = next_splash_text();
|
const new_text = next_splash_text();
|
||||||
if (SUNGLASSES_SPLASHES.indexOf(new_text) > -1)
|
if (SUNGLASSES_SPLASHES.indexOf(new_text) > -1 && document.hasFocus() && (! document.body.classList.contains("justthesplash")))
|
||||||
{
|
{
|
||||||
reveal_sunglasses();
|
reveal_sunglasses();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue