mirror of
https://github.com/SilenceLurker/ST-Amily2-Chat-Optimisation.git
synced 2026-06-06 11:15:50 +00:00
Update renderer-bindings.js
This commit is contained in:
@@ -14,13 +14,13 @@ export function initializeRendererBindings() {
|
|||||||
console.warn("[Amily2-Renderer] Could not find the settings container.");
|
console.warn("[Amily2-Renderer] Could not find the settings container.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
container.on('change', '#render-enable-toggle', function() {
|
container.on('change', '#amily-render-enable-toggle', function() {
|
||||||
const isChecked = this.checked;
|
const isChecked = this.checked;
|
||||||
|
|
||||||
if (!extension_settings[extensionName]) {
|
if (!extension_settings[extensionName]) {
|
||||||
extension_settings[extensionName] = {};
|
extension_settings[extensionName] = {};
|
||||||
}
|
}
|
||||||
extension_settings[extensionName].render_enabled = isChecked;
|
extension_settings[extensionName].amily_render_enabled = isChecked;
|
||||||
saveSettingsDebounced();
|
saveSettingsDebounced();
|
||||||
|
|
||||||
if (isChecked && !isRendererInitialized) {
|
if (isChecked && !isRendererInitialized) {
|
||||||
|
|||||||
Reference in New Issue
Block a user