迁移静音开关事件绑定
This commit is contained in:
@@ -129,7 +129,7 @@ $welcomeMessages = [
|
||||
<div style="font-size:10px;color:#475569;padding:0 2px 8px;">可集中管理播报显示与特效声音</div>
|
||||
<label
|
||||
style="display:flex;align-items:center;gap:6px;font-size:12px;color:#1e293b;cursor:pointer;padding:4px 2px;">
|
||||
<input type="checkbox" id="sound_muted" onchange="toggleSoundMute(this.checked)">
|
||||
<input type="checkbox" id="sound_muted">
|
||||
🔇 禁音
|
||||
</label>
|
||||
<div style="height:1px;background:#e2e8f0;margin:6px 0;"></div>
|
||||
|
||||
@@ -3328,6 +3328,7 @@
|
||||
void saveChatPreferences();
|
||||
}
|
||||
window.toggleSoundMute = toggleSoundMute;
|
||||
window.ChatRoomTools?.bindSoundMuteControl?.(() => saveChatPreferences());
|
||||
|
||||
|
||||
// ── 发送消息(Enter 发送,防 IME 输入法重复触发)────────
|
||||
|
||||
Reference in New Issue
Block a user