Browse Source

Aggiorna 'js/lettera.js'

Alessia 2 years ago
parent
commit
f521249bfc
1 changed files with 7 additions and 2 deletions
  1. 7 2
      js/lettera.js

+ 7 - 2
js/lettera.js

@@ -87,8 +87,13 @@ async function fillPageContents(){
 
 // Con la risposta (stringhificata) delle queries, aggiorna la pagina
 function putValuesInHTML(){
-	console.log("Stringified Response:", queryStringOutput);
-	queryOutput = JSON.parse(queryStringOutput);
+  	//Attention! This is a rough patch-up!
+  	queryString = queryStringOutput.replaceAll("}}{", "},")
+	console.log("Stringified Response:", queryString);
+	queryOutput = JSON.parse(queryString);
+  
+	//console.log("Stringified Response:", queryStringOutput);
+	//queryOutput = JSON.parse(queryStringOutput);
 	//
 	// Query buone
 	if(queryOutput.titolo) document.getElementById("title").innerHTML = queryOutput.titolo.value;