From b0b537968ca6bb21bc71b6f16fbb0e9127e87715 Mon Sep 17 00:00:00 2001 From: piair Date: Fri, 25 Aug 2023 15:49:37 +0200 Subject: [PATCH] omg ca marche ? --- Flask/static/js/main.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Flask/static/js/main.js b/Flask/static/js/main.js index cc3e45d..dc2b5ef 100644 --- a/Flask/static/js/main.js +++ b/Flask/static/js/main.js @@ -74,7 +74,6 @@ function change_proxy(value) { function change_logs(value) { - data = JSON.parse('{{data|tojson}}'); //convertit le dictionnaire data en JSON - document.getElementById("embed") + console.log(value); + document.getElementById("embed").src = "/static/logs/" + value + ".txt"; } -