From 42e01750d32220a9491d95f41c0ad39271812c4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Eduardo=20Ribeiro=20Guerra?= <31783838+luisrguerra@users.noreply.github.com> Date: Wed, 28 Feb 2024 21:43:15 -0300 Subject: [PATCH] fix --- dashboard-v1/index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dashboard-v1/index.html b/dashboard-v1/index.html index dc66db3..3acce64 100644 --- a/dashboard-v1/index.html +++ b/dashboard-v1/index.html @@ -122,9 +122,11 @@

//printar console.log(urlDataString); +let cash; + try { //converter string para objeto - JSON.parse(urlDataString); + cash = JSON.parse(urlDataString); } catch (error) { alert('Erro ao carregar dados'); //redirecionar para google.com