test for chrome v66.
This commit is contained in:
16
index.html
16
index.html
@@ -5,6 +5,22 @@
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>OJ</title>
|
||||
<script>
|
||||
this.globalThis || (this.globalThis = window)
|
||||
if (!Object.fromEntries) {
|
||||
Object.defineProperty(Object, 'fromEntries', {
|
||||
value(entries) {
|
||||
if (!entries || !entries[Symbol.iterator]) {throw new Error('Object.fromEntries() requires a single iterable argument'); }
|
||||
const o = {};
|
||||
Object.keys(entries).forEach((key) => {
|
||||
const [k, v] = entries[key];
|
||||
o[k] = v;
|
||||
});
|
||||
return o;
|
||||
},
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body style="height: 100vh">
|
||||
<div id="app"></div>
|
||||
|
||||
Reference in New Issue
Block a user