add a dynamic js script for page config
This commit is contained in:
parent
262322b9e8
commit
85a7be01cb
5 changed files with 15 additions and 28 deletions
6
views/jsconfig.handlebars
Normal file
6
views/jsconfig.handlebars
Normal file
|
@ -0,0 +1,6 @@
|
|||
{{#if dsn}}
|
||||
window.dsn = '{{{dsn}}}';
|
||||
{{/if}}
|
||||
{{#if trackerId}}
|
||||
window.trackerId = '{{{trackerId}}}';
|
||||
{{/if}}
|
Loading…
Add table
Add a link
Reference in a new issue