mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-28 07:21:28 +00:00
Put template settings on client side
This commit is contained in:
parent
c8ab1bd394
commit
0152f42416
1 changed files with 4 additions and 4 deletions
|
@ -59,12 +59,12 @@ html(itemscope, itemtype='http://schema.org/Product')
|
|||
indexes:!{JSON.stringify(settings.algolia.indexes)}
|
||||
}
|
||||
|
||||
- if (typeof(settings.apis) != "undefined" && typeof(settings.apis.templates_api) != "undefined")
|
||||
- if (typeof(settings.templates) != "undefined")
|
||||
script.
|
||||
window.sharelatex.templates = {
|
||||
user_id : '!{settings.apis.templates_api.user_id}',
|
||||
cdnDomain : '!{settings.apis.templates_api.cdnDomain}',
|
||||
indexName : '!{settings.apis.templates_api.indexName}'
|
||||
user_id : '!{settings.templates.user_id}',
|
||||
cdnDomain : '!{settings.templates.cdnDomain}',
|
||||
indexName : '!{settings.templates.indexName}'
|
||||
}
|
||||
|
||||
body
|
||||
|
|
Loading…
Reference in a new issue