diff --git a/javascript/src/index.ts b/javascript/src/index.ts index bb0d963..50808f8 100644 --- a/javascript/src/index.ts +++ b/javascript/src/index.ts @@ -52,10 +52,7 @@ export interface ErrorPageParams { } // Load EJS template -export const baseTemplate: ejs.TemplateFunction = ejs.compile(templateString, { - rmWhitespace: true -}); - +export const baseTemplate: ejs.TemplateFunction = ejs.compile(templateString); /** * Generate random hex string for ray-id */ diff --git a/javascript/src/templates/template.ejs b/javascript/src/templates/template.ejs index cf31de5..8a67629 100644 --- a/javascript/src/templates/template.ejs +++ b/javascript/src/templates/template.ejs @@ -4,9 +4,9 @@
-<% const error_code = params.error_code || 500; %> -<% const title = params.title || 'Internal server error'; %> -<% const html_title = params.html_title || (error_code + ': ' + title); %> +<% const error_code = params.error_code || 500; -%> +<% const title = params.title || 'Internal server error'; -%> +<% const html_title = params.html_title || (error_code + ': ' + title); -%>