36 lines
1.2 KiB
HTML
36 lines
1.2 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
|
|
<title>Discord Clone</title>
|
|
</head>
|
|
<body>
|
|
<script>
|
|
(function() {
|
|
// Polyfills for older WebViews / non-secure contexts
|
|
if (!Object.hasOwn) {
|
|
Object.hasOwn = function(obj, prop) {
|
|
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
};
|
|
}
|
|
if (!crypto.randomUUID) {
|
|
crypto.randomUUID = function() {
|
|
var b = new Uint8Array(16);
|
|
crypto.getRandomValues(b);
|
|
b[6] = (b[6] & 0x0f) | 0x40;
|
|
b[8] = (b[8] & 0x3f) | 0x80;
|
|
var h = Array.from(b).map(function(v) { return v.toString(16).padStart(2, '0'); }).join('');
|
|
return h.slice(0,8)+'-'+h.slice(8,12)+'-'+h.slice(12,16)+'-'+h.slice(16,20)+'-'+h.slice(20);
|
|
};
|
|
}
|
|
var t = localStorage.getItem('discord-theme') || 'theme-dark';
|
|
document.documentElement.className = t;
|
|
})();
|
|
</script>
|
|
<div id="root"></div>
|
|
<script type="module" src="/src/main.jsx"></script>
|
|
</body>
|
|
</html>
|