fixed entityHTMLMessage
This commit is contained in:
parent
4b0c11136e
commit
e382719f30
|
@ -13,7 +13,6 @@ public class HTML_Page {
|
|||
public static String entityHTMLMessage(String action, String message, boolean waiting, String viewPdfURL) {
|
||||
|
||||
String newHTML = "<html>\n"
|
||||
+ "\n"
|
||||
+ " <head>\n"
|
||||
+ " <meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\">\n"
|
||||
+ " <style>\n"
|
||||
|
@ -50,7 +49,7 @@ public class HTML_Page {
|
|||
+ " async function fetchPDF_URL() {\n"
|
||||
+ " try {\n"
|
||||
+ "\n"
|
||||
+ " const response = await fetch("+viewPdfURL+");\n"
|
||||
+ " const response = await fetch('"+viewPdfURL+"');\n"
|
||||
+ " console.log(\"polling response\");\n"
|
||||
+ " return response.json();\n"
|
||||
+ " } catch (error) {\n"
|
||||
|
@ -58,8 +57,8 @@ public class HTML_Page {
|
|||
+ " }\n"
|
||||
+ " }\n"
|
||||
+ " async function playPDFPoll() {\n"
|
||||
+ " const response_object = await fetchPDF_URL();\n"
|
||||
+ " isJsonresponse = isJsonString(response_object);\n"
|
||||
+ " let response_object = await fetchPDF_URL();\n"
|
||||
+ " let isJsonResponse = isJsonString(response_object);\n"
|
||||
+ " if (isJsonResponse) {\n"
|
||||
+ " console.log(\"json response \" + response_object);\n"
|
||||
+ " if (!(response_object.url === null || response_object.url === undefined)) {\n"
|
||||
|
|
Loading…
Reference in New Issue