From ef49b72442cfa16f2cb0be2bb9686e5b0922ff89 Mon Sep 17 00:00:00 2001 From: Sheogorath Date: Tue, 31 Oct 2017 01:41:03 +0100 Subject: [PATCH] Fix allowpdfexport handling on error page --- public/views/hackmd/header.ejs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/views/hackmd/header.ejs b/public/views/hackmd/header.ejs index 47b563a..80df2c7 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)
  • <% } %>