diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index c51d7916ca80..1f4517901d36 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -1892,9 +1892,8 @@ func MakeConsolePreloads(ctx *cli.Context) []string { // Otherwise resolve absolute paths and return them var preloads []string - assets := ctx.GlobalString(JSpathFlag.Name) for _, file := range strings.Split(ctx.GlobalString(PreloadJSFlag.Name), ",") { - preloads = append(preloads, common.AbsolutePath(assets, strings.TrimSpace(file))) + preloads = append(preloads, strings.TrimSpace(file)) } return preloads }