mirror of
https://github.com/harness/drone.git
synced 2025-05-05 06:21:50 +08:00
10 lines
243 B
HTML
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>
|