remove unuseful code.

This commit is contained in:
2023-04-12 19:13:46 +08:00
parent 7a1cd8244b
commit 987d27cb51
3 changed files with 9 additions and 21 deletions

View File

@@ -5,24 +5,8 @@
<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">
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>