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:
@ -1643,7 +1643,7 @@ PromptManagerModule.prototype.import = function (importData) {
|
||||
*/
|
||||
PromptManagerModule.prototype.validateObject = function (controlObj, object) {
|
||||
for (let key in controlObj) {
|
||||
if (!object.hasOwnProperty(key)) {
|
||||
if (!Object.hasOwn(object, key)) {
|
||||
if (controlObj[key] === null) continue;
|
||||
else return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user