From e739c3c7fd02ed8fd73474080b05b8b4096186fc Mon Sep 17 00:00:00 2001 From: fschneider Date: Thu, 3 Sep 2015 17:32:01 +0200 Subject: Preparations for app --- pdf-as-web/src/main/resources/template_error.html | 2 +- pdf-as-web/src/main/resources/template_provide.html | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'pdf-as-web/src/main/resources') 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); } } 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 @: download here 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##'); -- cgit v1.2.3