From 4170874f3de66f239015b4ff8ee0e41bff256d9b Mon Sep 17 00:00:00 2001 From: tobspr Date: Mon, 25 May 2020 12:04:25 +0200 Subject: [PATCH] Firefox fixes nr. 2 --- src/js/platform/browser/wrapper.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/js/platform/browser/wrapper.js b/src/js/platform/browser/wrapper.js index a5086b1b..5c5b0711 100644 --- a/src/js/platform/browser/wrapper.js +++ b/src/js/platform/browser/wrapper.js @@ -28,14 +28,9 @@ export class PlatformWrapperImplBrowser extends PlatformWrapperInterface { this.embedProvider.iframed = true; this.embedProvider.iogLink = false; - window.addEventListener( - "mousedown", - () => { - console.log("Firefox fix: focusing window"); - window.focus(); - }, - true - ); + logger.log("Running focus-fix automatically"); + window.focus(); + setInterval(() => window.focus(), 1000); switch (providerId) { case "armorgames": {