mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-03 14:13:39 -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(src="https://js.recurly.com/v3/recurly.js")
|
||||||
|
|
||||||
script(type='text/javascript').
|
script(type='text/javascript').
|
||||||
window.recomendedCurrency = '#{currency}'
|
|
||||||
window.countryCode = '#{countryCode}'
|
window.countryCode = '#{countryCode}'
|
||||||
window.plan_code = '#{plan_code}'
|
window.plan_code = '#{plan_code}'
|
||||||
window.recurlyApiKey = "!{settings.apis.recurly.publicKey}"
|
window.recurlyApiKey = "!{settings.apis.recurly.publicKey}"
|
||||||
window.couponCode = "#{couponCode}"
|
window.couponCode = !{JSON.stringify(couponCode)}
|
||||||
|
window.recomendedCurrency = !{JSON.stringify(currency.slice(0,3))}
|
||||||
|
|
||||||
block content
|
block content
|
||||||
.content.content-alt
|
.content.content-alt
|
||||||
|
|
Loading…
Reference in a new issue