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.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/pdf-as-web/src/main/resources/template_error.html b/pdf-as-web/src/main/resources/template_error.html
index 0371c568..87992c42 100644
--- a/pdf-as-web/src/main/resources/template_error.html
+++ b/pdf-as-web/src/main/resources/template_error.html
@@ -7,5 +7,21 @@
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!", error);
+ }
+ }
+</script>
</body>
</html>