From 250ba46835301bb724275ba69ee26583fdb9f88c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Notin?= Date: Mon, 21 Dec 2020 22:33:49 +0100 Subject: [PATCH] Fix devtools detection perf issue on Firefox MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Clearing console allows to not overload it on Firefox. Detection still does not work (whereas it works on Chrome), but it will properly stop and won't overload CPU/RAM. Idea by @J12934 Closes #1525 Signed-off-by: Clément Notin --- frontend/src/hacking-instructor/helpers/helpers.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/hacking-instructor/helpers/helpers.ts b/frontend/src/hacking-instructor/helpers/helpers.ts index 15f25c27599..f6c8cc6973d 100644 --- a/frontend/src/hacking-instructor/helpers/helpers.ts +++ b/frontend/src/hacking-instructor/helpers/helpers.ts @@ -160,6 +160,7 @@ export function waitForDevTools () { return async () => { while (true) { console.dir(element) + console.clear() if (checkStatus) { break }