Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Views: 39538
1
BASE_URL = ''
2
3
exports.init = (base_url) ->
4
BASE_URL = base_url
5
# make sure base_url doesn't end in slash
6
while BASE_URL and BASE_URL[BASE_URL.length-1] == '/'
7
BASE_URL = BASE_URL.slice(0, BASE_URL.length-1)
8
return BASE_URL
9
10
exports.base_url = ->
11
return BASE_URL
12