                  set_admin_json_config();
                    } catch (e) {
                        add_alert("Failed to update admin json config: " + e, "danger")
                    }
                }
            }
            document.getElementById("copySettings").addEventListener("click", copy_settings_to_clipboard);
            document.getElementById("applySettings").addEventListener("click", apply_settings_from_textarea);
            document.getElementById("settingsModal").addEventListener("shown