mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Enable no-prototype-builtins lint
This commit is contained in:
@ -2832,7 +2832,8 @@ async function onLogitBiasPresetImportFileChange(e) {
|
||||
|
||||
for (const entry of importedFile) {
|
||||
if (typeof entry == 'object' && entry !== null) {
|
||||
if (entry.hasOwnProperty('text') && entry.hasOwnProperty('value')) {
|
||||
if (Object.hasOwn(entry, 'text') &&
|
||||
Object.hasOwn(entry, 'value')) {
|
||||
validEntries.push(entry);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user