迁移聊天室本地清屏入口
This commit is contained in:
@@ -296,6 +296,20 @@ export function toggleBlockMenu(event = null, beforeToggle = undefined) {
|
||||
menu.style.display = menu.style.display === "none" ? "block" : "none";
|
||||
}
|
||||
|
||||
/**
|
||||
* 执行功能菜单里的本地清屏动作,并在执行前关闭菜单。
|
||||
*
|
||||
* @param {() => void} onLocalClear 本地清屏回调
|
||||
* @returns {void}
|
||||
*/
|
||||
export function handleFeatureLocalClear(onLocalClear) {
|
||||
closeFeatureMenu();
|
||||
|
||||
if (typeof onLocalClear === "function") {
|
||||
onLocalClear();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 绑定功能菜单、每日状态编辑与系统播报屏蔽的统一事件代理。
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user