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