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 @@
  • <%= __('Raw HTML') %>
  • - <% if(allowpdfexport) {%> + <% if(typeof allowpdfexport !== 'undefined' && allowpdfexport) {%>
  • PDF (Beta)
  • <% } %> @@ -171,7 +171,7 @@
  • <%= __('Raw HTML') %>
  • - <% if(allowpdfexport) {%> + <% if(typeof allowpdfexport !== 'undefined' && allowpdfexport) {%>
  • PDF (Beta)
  • <% } %>