diff options
Diffstat (limited to 'pdf-as-web/src/main/resources')
-rw-r--r-- | pdf-as-web/src/main/resources/template_error.html | 2 | ||||
-rw-r--r-- | pdf-as-web/src/main/resources/template_provide.html | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/pdf-as-web/src/main/resources/template_error.html b/pdf-as-web/src/main/resources/template_error.html index 87992c42..47ba9c56 100644 --- a/pdf-as-web/src/main/resources/template_error.html +++ b/pdf-as-web/src/main/resources/template_error.html @@ -19,7 +19,7 @@ Error Page: parent.postMessage(data, '##PUBLICURL##'); } catch(error) { if(window.console) { - window.console.log("Sending message failed!", error); + window.console.log("Sending message failed! to parent: " + parent, error); } } </script> diff --git a/pdf-as-web/src/main/resources/template_provide.html b/pdf-as-web/src/main/resources/template_provide.html index 1ff00d15..28b51ed4 100644 --- a/pdf-as-web/src/main/resources/template_provide.html +++ b/pdf-as-web/src/main/resources/template_provide.html @@ -10,11 +10,12 @@ PDF ready @: <a href="##PDFDATAURL##">download here</a> var data = { pdfas: { success: true, - pdfUrl: "Child URL" + pdfUrl: "##PDFDATAURL##" } } - - parent.postMessage(data, '##PUBLICURL##'); + + console.log("sending msg to parent: " + parent); + parent.postMessage(data, '*'); //'##PUBLICURL##'); </script> </body> </html> |