mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-16 08:52:17 +00:00
fix avatar export page
This commit is contained in:
parent
dc4c6fa6e7
commit
1840c3907b
1 changed files with 5 additions and 1 deletions
|
|
@ -10,8 +10,12 @@ html(ng-app="habitrpg")
|
|||
|
||||
// .slice(0).push('user') is to clone the array,
|
||||
// to be surethat `user` is never avalaible to other requests' env
|
||||
-
|
||||
clientVars = env.clientVars.slice(0);
|
||||
clientVars.push('user');
|
||||
|
||||
script(type='text/javascript').
|
||||
window.env = !{JSON.stringify(env._.pick(env, env.clientVars.slice(0).push('user')))};
|
||||
window.env = !{JSON.stringify(env._.pick(env, clientVars))};
|
||||
|
||||
!= env.getManifestFiles("app")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue