Change variable name to prevent conflicts

This commit is contained in:
2021-05-22 17:16:05 -07:00
parent 062f329448
commit 61ed6e1872
4 changed files with 31 additions and 4 deletions

View File

@@ -29,5 +29,8 @@
document.getElementById("{{printf `APIElement%d_%s` $index $randID}}").innerHTML = `{{unescJS (trim $fmtStr)}}`
{{end}}
}
{{range $key, $value := .Data.headers}}
request.setRequestHeader("{{$key}}", "{{$value}}")
{{end}}
request.send()
</script>