mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Localize variables
Stop the leaking!
This commit is contained in:
@@ -2890,8 +2890,9 @@ function save_bias(item) {
|
|||||||
|
|
||||||
function sync_to_server(item) {
|
function sync_to_server(item) {
|
||||||
//get value
|
//get value
|
||||||
value = null;
|
let value = null;
|
||||||
name = null;
|
let name = null;
|
||||||
|
|
||||||
if ((item.tagName.toLowerCase() === 'checkbox') || (item.tagName.toLowerCase() === 'input') || (item.tagName.toLowerCase() === 'select') || (item.tagName.toLowerCase() == 'textarea')) {
|
if ((item.tagName.toLowerCase() === 'checkbox') || (item.tagName.toLowerCase() === 'input') || (item.tagName.toLowerCase() === 'select') || (item.tagName.toLowerCase() == 'textarea')) {
|
||||||
if (item.getAttribute("type") == "checkbox") {
|
if (item.getAttribute("type") == "checkbox") {
|
||||||
value = item.checked;
|
value = item.checked;
|
||||||
|
Reference in New Issue
Block a user