Skip to content

Clear Configuration also clears defaults.conf #188

Open
@tux78

Description

@tux78

When clicking "Clear Configuration" the defaults.conf is not loaded, thus the defaults.conf file will be empty once saving the cleared botnet. This can be fixed by modifying configs.js (function load_bots)

if (getUrlParameter("configuration") !== "new") {
    load_configuration();
} else {
    load_file(DEFAULTS_FILE, (config) => { app.defaults = read_defaults_conf(config) })
    draw();
    resize();
    $saveButton.blinking();
}

Adding the "load_file" statement correctly loads defaults.conf when clearing the botnet.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions