1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

CHORE: Rename js.Javascript to js.JavaScript (#2405)

This commit is contained in:
Tom Limoncelli
2023-05-30 18:02:24 -04:00
committed by GitHub
parent 83a7f06718
commit e9b4b9b34d
3 changed files with 5 additions and 5 deletions

View File

@ -35,8 +35,8 @@ var currentDirectory string
// EnableFetch sets whether to enable fetch() in JS execution environment
var EnableFetch bool = false
// ExecuteJavascript accepts a javascript file and runs it, returning the resulting dnsConfig.
func ExecuteJavascript(file string, devMode bool, variables map[string]string) (*models.DNSConfig, error) {
// ExecuteJavaScript accepts a javascript file and runs it, returning the resulting dnsConfig.
func ExecuteJavaScript(file string, devMode bool, variables map[string]string) (*models.DNSConfig, error) {
script, err := os.ReadFile(file)
if err != nil {
return nil, err