mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Add Object.hasOwn polyfill
This commit is contained in:
4
public/lib/object-hasown.js
Normal file
4
public/lib/object-hasown.js
Normal file
@ -0,0 +1,4 @@
|
||||
// Polyfill for old Safari versions
|
||||
if (!Object.hasOwn) {
|
||||
Object.hasOwn = function (obj, prop) { return obj.hasOwnProperty(prop); }
|
||||
}
|
Reference in New Issue
Block a user