From af3f11521b9950cb9e2e3151285c03e6f75fde64 Mon Sep 17 00:00:00 2001 From: Lorenzo Blasa Date: Tue, 14 Nov 2023 10:53:09 -0800 Subject: [PATCH] Remove probably duplicated logs Summary: These logs only available on debug but we already have these logs coming from the actual used socket, so remove. Reviewed By: aigoncharov Differential Revision: D51307089 fbshipit-source-id: 32e3eada42fa54b429df0bfcdd936d24cebaf0cb --- desktop/static/index.web.dev.html | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/desktop/static/index.web.dev.html b/desktop/static/index.web.dev.html index 935f05eb6..18aab2fb3 100644 --- a/desktop/static/index.web.dev.html +++ b/desktop/static/index.web.dev.html @@ -64,7 +64,6 @@ (async function () { // Line below needed to make Metro work. Alternatives could be considered. window.global = window; - let connected = false; // Listen to changes in the network state, reload when online. // This handles the case when the device is completely offline @@ -129,21 +128,8 @@ } } } - }) - - socket.addEventListener('error', (e) => { - if (!connected) { - console.warn('Socket failed to connect. Is the server running? Have you provided a valid authentication token?'); - } - else { - console.warn('Socket failed with error.', e); - } }); - socket.addEventListener('open', () => { - connected = true; - }) - // load correct theme (n.b. this doesn't handle system value specifically, will assume light in such cases) try { if (window.flipperConfig.theme === 'dark') {