summaryrefslogtreecommitdiff
path: root/public/views
diff options
context:
space:
mode:
authorSheogorath2017-10-31 02:22:42 +0100
committerGitHub2017-10-31 02:22:42 +0100
commitf2812730e084d211c2d4ee9bb24cc3204ff54f51 (patch)
tree8d6792e65cbc3fb50688329e9c0d176f1f5639f1 /public/views
parent6ca28845c2994310cbfd46711cb8d6f6cf689b16 (diff)
parentef49b72442cfa16f2cb0be2bb9686e5b0922ff89 (diff)
Merge pull request #613 from SISheogorath/fix/allowerrorHandling
Fix allowpdfexport handling on error page
Diffstat (limited to '')
-rw-r--r--public/views/hackmd/header.ejs4
1 files changed, 2 insertions, 2 deletions
diff --git a/public/views/hackmd/header.ejs b/public/views/hackmd/header.ejs
index 47b563ac..80df2c77 100644
--- a/public/views/hackmd/header.ejs
+++ b/public/views/hackmd/header.ejs
@@ -70,7 +70,7 @@
</li>
<li role="presentation"><a role="menuitem" class="ui-download-raw-html" tabindex="-1" href="#" target="_self"><i class="fa fa-file-code-o fa-fw"></i> <%= __('Raw HTML') %></a>
</li>
- <% if(allowpdfexport) {%>
+ <% if(typeof allowpdfexport !== 'undefined' && allowpdfexport) {%>
<li role="presentation"><a role="menuitem" class="ui-download-pdf-beta" tabindex="-1" href="#" target="_self"><i class="fa fa-file-pdf-o fa-fw"></i> PDF (Beta)</a>
</li>
<% } %>
@@ -171,7 +171,7 @@
</li>
<li role="presentation"><a role="menuitem" class="ui-download-raw-html" tabindex="-1" href="#" target="_self"><i class="fa fa-file-code-o fa-fw"></i> <%= __('Raw HTML') %></a>
</li>
- <% if(allowpdfexport) {%>
+ <% if(typeof allowpdfexport !== 'undefined' && allowpdfexport) {%>
<li role="presentation"><a role="menuitem" class="ui-download-pdf-beta" tabindex="-1" href="#" target="_self"><i class="fa fa-file-pdf-o fa-fw"></i> PDF (Beta)</a>
</li>
<% } %>