updated
This commit is contained in:
@@ -236,11 +236,16 @@ function handle(m) {
|
||||
}
|
||||
|
||||
func ApplovinPick(w http.ResponseWriter, r *http.Request) {
|
||||
cfg := LoadConfig()
|
||||
picked := PickFiles(
|
||||
"Select HTML files",
|
||||
[]FileFilter{{Name: "HTML", Extensions: []string{"html", "htm"}}},
|
||||
true, "",
|
||||
true, cfg.LastPickDir,
|
||||
)
|
||||
if len(picked) > 0 {
|
||||
cfg.LastPickDir = filepath.Dir(picked[0])
|
||||
_ = SaveConfig(cfg)
|
||||
}
|
||||
files := make([]map[string]string, 0, len(picked))
|
||||
for _, p := range picked {
|
||||
files = append(files, map[string]string{"path": p, "name": filepath.Base(p)})
|
||||
|
||||
Reference in New Issue
Block a user