aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web/src/main/resources/template_error.html
diff options
context:
space:
mode:
authorfschneider <florian.schneider@student.tugraz.at>2015-09-17 08:19:38 +0200
committerfschneider <florian.schneider@student.tugraz.at>2015-09-17 08:19:38 +0200
commiteba877880d96f1335ef2e593ae02782357a7de3f (patch)
tree79f55548732b8b62afc7619b87223d5343cf4e11 /pdf-as-web/src/main/resources/template_error.html
parente739c3c7fd02ed8fd73474080b05b8b4096186fc (diff)
downloadpdf-as-4-eba877880d96f1335ef2e593ae02782357a7de3f.tar.gz
pdf-as-4-eba877880d96f1335ef2e593ae02782357a7de3f.tar.bz2
pdf-as-4-eba877880d96f1335ef2e593ae02782357a7de3f.zip
before cherry pick
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>