mirror of
https://github.com/Wx-2025/ST-Amily2-Chat-Optimisation.git
synced 2026-06-06 11:35:50 +00:00
Update bindings.js
This commit is contained in:
@@ -150,7 +150,7 @@ export function bindModalEvents() {
|
||||
.off("change.amily2.radio")
|
||||
.on(
|
||||
"change.amily2.radio",
|
||||
'input[type="radio"][name^="amily2_"]:not([name="amily2_icon_location"])', // 排除我们的特殊开关
|
||||
'input[type="radio"][name^="amily2_"]:not([name="amily2_icon_location"])',
|
||||
function () {
|
||||
if (!pluginAuthStatus.authorized) return;
|
||||
const key = snakeToCamel(this.name.replace("amily2_", ""));
|
||||
@@ -161,7 +161,7 @@ export function bindModalEvents() {
|
||||
|
||||
container
|
||||
.off("change.amily2.text")
|
||||
.on("change.amily2.text", "#amily2_api_url, #amily2_api_key", function () {
|
||||
.on("change.amily2.text", "#amily2_api_url, #amily2_api_key, #amily2_optimization_target_tag", function () {
|
||||
if (!pluginAuthStatus.authorized) return;
|
||||
const key = snakeToCamel(this.id.replace("amily2_", ""));
|
||||
updateAndSaveSetting(key, this.value);
|
||||
|
||||
Reference in New Issue
Block a user