Files
woodpecker/server/template/files/script.html
2017-07-18 14:20:19 -04:00

10 lines
243 B
HTML

<script>
window.ENV = {};
window.ENV.server = window.location.protocol+"//"+window.location.host;
{{ if .csrf }}window.ENV.csrf = "{{ .csrf }}"{{ end }}
{{ if .user }}
window.USER = {{ json .user }};
{{ end }}
</script>