Prechádzať zdrojové kódy

Aggiorna 'js/lettera.js'

Alessia 2 rokov pred
rodič
commit
f521249bfc
1 zmenil súbory, kde vykonal 7 pridanie a 2 odobranie
  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;