mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
json stringify and trim recommended currency
This commit is contained in:
parent
1ce48e971a
commit
085cc7a0b2
1 changed files with 2 additions and 2 deletions
|
@ -4,11 +4,11 @@ block scripts
|
|||
script(src="https://js.recurly.com/v3/recurly.js")
|
||||
|
||||
script(type='text/javascript').
|
||||
window.recomendedCurrency = '#{currency}'
|
||||
window.countryCode = '#{countryCode}'
|
||||
window.plan_code = '#{plan_code}'
|
||||
window.recurlyApiKey = "!{settings.apis.recurly.publicKey}"
|
||||
window.couponCode = "#{couponCode}"
|
||||
window.couponCode = !{JSON.stringify(couponCode)}
|
||||
window.recomendedCurrency = !{JSON.stringify(currency.slice(0,3))}
|
||||
|
||||
block content
|
||||
.content.content-alt
|
||||
|
|
Loading…
Reference in a new issue