diff options
author | Sheogorath | 2017-10-31 01:41:03 +0100 |
---|---|---|
committer | Sheogorath | 2017-10-31 01:57:32 +0100 |
commit | ef49b72442cfa16f2cb0be2bb9686e5b0922ff89 (patch) | |
tree | db0ee4a575037ac35a4fe889692612f8df401623 | |
parent | dad5798472406aad08b1b1c5433f314fdaa679e7 (diff) |
Fix allowpdfexport handling on error page
-rw-r--r-- | public/views/hackmd/header.ejs | 4 |
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> <% } %> |