update HTML page
This commit is contained in:
parent
9ec1dcf9a0
commit
9203782e49
|
@ -42,7 +42,8 @@ public class FetchPDF {
|
|||
}
|
||||
|
||||
public synchronized int incrementAttempt() {
|
||||
return attempt++;
|
||||
attempt++;
|
||||
return attempt;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -48,7 +48,6 @@ public class HTML_Page {
|
|||
+ " <script type=\"text/javascript\">\n"
|
||||
+ " async function fetchPDF_URL() {\n"
|
||||
+ " try {\n"
|
||||
+ "\n"
|
||||
+ " const response = await fetch('"+viewPdfURL+"');\n"
|
||||
+ " console.log(\"polling response\");\n"
|
||||
+ " return response.json();\n"
|
||||
|
@ -58,6 +57,7 @@ public class HTML_Page {
|
|||
+ " }\n"
|
||||
+ " async function playPDFPoll() {\n"
|
||||
+ " const response_object = await fetchPDF_URL();\n"
|
||||
+ " console.log(\"response is: \" + response_object);\n"
|
||||
+ " let isJsonResponse = isJsonString(response_object);\n"
|
||||
+ " if (isJsonResponse) {\n"
|
||||
+ " console.log(\"json response \" + response_object);\n"
|
||||
|
|
Loading…
Reference in New Issue