Get initial focus

This commit is contained in:
Jake Archibald
2020-11-26 13:31:23 +00:00
parent e8948167db
commit 251dc2ce9b

View File

@@ -319,8 +319,8 @@ export function startBlobAnim(canvas: HTMLCanvasElement) {
const centralBlobs = new CentralBlobs();
let backgroundBlobs: BackgroundBlobs;
const loadImgEl = document.querySelector('.' + style.loadImg)!;
let deltaMultiplier = 1;
let hasFocus = true;
let hasFocus = document.hasFocus();
let deltaMultiplier = hasFocus ? 1 : 0;
let animating = true;
const focusListener = () => {