From dea23334b4931f3775dd2586a3a352411bcc5d95 Mon Sep 17 00:00:00 2001 From: AlGouvea Date: Fri, 22 Oct 2021 10:06:02 -0300 Subject: [PATCH] =?UTF-8?q?Fiz=20do=20bug=20pra=20sess=C3=B5es=20menores?= =?UTF-8?q?=20que=20100,=20e=20remo=C3=A7=C3=A3o=20de=20commits=20n=C3=A3o?= =?UTF-8?q?=20relacionados?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/__apps/painel/main.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/src/__apps/painel/main.js b/frontend/src/__apps/painel/main.js index 9f655736e..fc1a5772d 100644 --- a/frontend/src/__apps/painel/main.js +++ b/frontend/src/__apps/painel/main.js @@ -515,7 +515,13 @@ const v = new Vue({ // eslint-disable-line console.log('Connection established') // Pedir os dados uma vez - const id = window.location.href.slice(-3) + var id = window.location.href.slice(-3) + if (isNaN(id.charAt(0)) === true) { + id = window.location.href.slice(-2) + if (isNaN(id.charAt(0)) === true) { + id = window.location.href.slice(-1) + } + } socket.send(id) }