mirror of
https://github.com/SilenceLurker/ST-Amily2-Chat-Optimisation.git
synced 2026-06-07 15:15:50 +00:00
Update table-bindings.js
This commit is contained in:
@@ -1715,8 +1715,10 @@ function bindChatTableDisplaySetting() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Initialize the toggle state from settings
|
||||||
toggle.checked = settings.show_table_in_chat === true;
|
toggle.checked = settings.show_table_in_chat === true;
|
||||||
|
|
||||||
|
// Add event listener to update settings on change
|
||||||
toggle.addEventListener('change', () => {
|
toggle.addEventListener('change', () => {
|
||||||
settings.show_table_in_chat = toggle.checked;
|
settings.show_table_in_chat = toggle.checked;
|
||||||
saveSettingsDebounced();
|
saveSettingsDebounced();
|
||||||
|
|||||||
Reference in New Issue
Block a user