mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-04-03 05:31:14 +02:00
Add Object.hasOwn polyfill
This commit is contained in:
parent
f43d738dfd
commit
2e6ab8be46
@ -22,6 +22,7 @@
|
|||||||
<link rel="apple-touch-icon" sizes="72x72" href="img/apple-icon-72x72.png" />
|
<link rel="apple-touch-icon" sizes="72x72" href="img/apple-icon-72x72.png" />
|
||||||
<link rel="apple-touch-icon" sizes="114x114" href="img/apple-icon-114x114.png" />
|
<link rel="apple-touch-icon" sizes="114x114" href="img/apple-icon-114x114.png" />
|
||||||
<link rel="apple-touch-icon" sizes="144x144" href="img/apple-icon-144x144.png" />
|
<link rel="apple-touch-icon" sizes="144x144" href="img/apple-icon-144x144.png" />
|
||||||
|
<script src="lib/object-hasown.js"></script>
|
||||||
<script src="lib/jquery-3.5.1.min.js"></script>
|
<script src="lib/jquery-3.5.1.min.js"></script>
|
||||||
<script src="lib/jquery-ui.min.js"></script>
|
<script src="lib/jquery-ui.min.js"></script>
|
||||||
<script src="lib/jquery.transit.min.js"></script>
|
<script src="lib/jquery.transit.min.js"></script>
|
||||||
|
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); }
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user