aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web/src/main/resources/template_error.html
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-as-web/src/main/resources/template_error.html')
-rw-r--r--pdf-as-web/src/main/resources/template_error.html17
1 files changed, 4 insertions, 13 deletions
diff --git a/pdf-as-web/src/main/resources/template_error.html b/pdf-as-web/src/main/resources/template_error.html
index 47ba9c56..21faa082 100644
--- a/pdf-as-web/src/main/resources/template_error.html
+++ b/pdf-as-web/src/main/resources/template_error.html
@@ -8,20 +8,11 @@ Error Page:
<p>##ERROR_MESSAGE##</p>
<p>##ERROR_STACK##</p>
<script type="text/javascript">
- try {
- var data = {
- pdfas: {
- error: true,
- msg: "##ERROR_MESSAGE##"
- }
- }
- parent.postMessage(data, '##PUBLICURL##');
- } catch(error) {
- if(window.console) {
- window.console.log("Sending message failed! to parent: " + parent, error);
- }
- }
+ console.log("sending error msg to parent: " + parent);
+ window.parent.respond("##PDFDATAURL##", false);
+
+
</script>
</body>
</html>