Julien Chaumond commited on
Commit
30358b4
1 Parent(s): 241fed7

[server] Tweak variable name

Browse files
Files changed (1) hide show
  1. server/server.ts +1 -1
server/server.ts CHANGED
@@ -35,7 +35,7 @@ const PERSONAS = {
35
 
36
 
37
  const templateHtml = async (slug: string, text: string): Promise<string> => {
38
- const jsStr = `window.PERSONA_FOOBAR = ${ JSON.stringify({ slug, text }) };`;
39
  /// Transform text. Should be the exact same function client-side.
40
  const persona = text.split('.').map(x => Utils.capitalize(x)).join(`.<br>`);
41
  let s = await fs.promises.readFile(__frontDir+`/index.html`, 'utf8');
 
35
 
36
 
37
  const templateHtml = async (slug: string, text: string): Promise<string> => {
38
+ const jsStr = `window.PERSONA_ATLOAD = ${ JSON.stringify({ slug, text }) };`;
39
  /// Transform text. Should be the exact same function client-side.
40
  const persona = text.split('.').map(x => Utils.capitalize(x)).join(`.<br>`);
41
  let s = await fs.promises.readFile(__frontDir+`/index.html`, 'utf8');