added set_settings functional
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Successful in 5s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Successful in 10s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Successful in 8s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Successful in 5s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Successful in 10s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Successful in 8s
This commit is contained in:
1 parent
293f77829a
commit
4e36d1a86e
7 files changed
+187
-1
No files matched your search
@@ -76,6 +76,10 @@ const setSettings = () => {
|
||||
})
|
||||
.then((data) => data.json())
|
||||
.then((jsondata) => {
|
||||
if (jsondata.error) {
|
||||
alert(jsondata.error);
|
||||
return;
|
||||
}
|
||||
settings = jsondata;
|
||||
updateInterface();
|
||||
alert("Success set settings");
|
||||
@@ -88,7 +92,7 @@ save_settings_button.addEventListener("click", () => {
|
||||
});
|
||||
|
||||
const write_cache_size = (value) => {
|
||||
settings.cache_size = value;
|
||||
settings.cache_size = parseInt(value);
|
||||
};
|
||||
|
||||
cache_size_input.addEventListener("change", (e) => {
|
||||
|
||||
Reference in new issue
Block a user