Add Object.hasOwn polyfill

This commit is contained in:
Cohee 2023-12-10 23:28:00 +02:00
parent f43d738dfd
commit 2e6ab8be46
2 changed files with 5 additions and 0 deletions

View File

@ -22,6 +22,7 @@
<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="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-ui.min.js"></script>
<script src="lib/jquery.transit.min.js"></script>

View File

@ -0,0 +1,4 @@
// Polyfill for old Safari versions
if (!Object.hasOwn) {
Object.hasOwn = function (obj, prop) { return obj.hasOwnProperty(prop); }
}