Update table-bindings.js

This commit is contained in:
2025-10-02 21:45:24 +08:00
committed by GitHub
parent 6f6da00e05
commit d2fab8b465

View File

@@ -1715,8 +1715,10 @@ function bindChatTableDisplaySetting() {
return;
}
// Initialize the toggle state from settings
toggle.checked = settings.show_table_in_chat === true;
// Add event listener to update settings on change
toggle.addEventListener('change', () => {
settings.show_table_in_chat = toggle.checked;
saveSettingsDebounced();