Security Update

This commit is contained in:
2025-12-24 22:39:55 +08:00
parent 2f12c4e22c
commit f1f2da1ee4

View File

@@ -25,16 +25,16 @@ export function initializeRendererBindings() {
extension_settings[extensionName].amily_render_enabled = isEnabled; extension_settings[extensionName].amily_render_enabled = isEnabled;
// 使用防抖保存,避免频繁操作 // 使用防抖保存,避免频繁操作
saveSettingsDebounced().then(() => { saveSettingsDebounced();
// 仅在状态实际发生变化时执行渲染或清理
if (wasEnabled !== isEnabled) { // 仅在状态实际发生变化时执行渲染或清理
if (isEnabled) { if (wasEnabled !== isEnabled) {
renderAllIframes(); if (isEnabled) {
} else { renderAllIframes();
clearAllIframes(); } else {
} clearAllIframes();
} }
}); }
}); });
container.on('change', '#render-depth', function () { container.on('change', '#render-depth', function () {