waku-lab/examples/buddybook/index.html

49 lines
1.5 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/buddybook/favicon.svg" />
<link rel="icon" type="image/png" href="/buddybook/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>BuddyBook Dogfood</title>
<base href="/buddybook/" />
<script>
window.global = window;
window.process = {
env: {
NODE_ENV: 'production',
VITE_WALLETCONNECT_PROJECT_ID: '%VITE_WALLETCONNECT_PROJECT_ID%'
},
nextTick: function(fn) { setTimeout(fn, 0); },
platform: 'browser',
version: 'v16.0.0',
browser: true
};
</script>
<script type="text/javascript">
(function(l) {
if (l.search[1] === '/' ) {
var decoded = l.search.slice(1).split('&').map(function(s) {
return s.replace(/~and~/g, '&')
}).join('?');
window.history.replaceState(null, null,
l.pathname.slice(0, -1) + decoded + l.hash
);
}
}(window.location))
</script>
<script type="text/javascript">
(function() {
const path = window.location.pathname.substring('/buddybook/'.length);
if (path && !window.location.search.includes('?/')) {
window.location.replace('/buddybook/?/' + path + window.location.search + window.location.hash);
}
})();
</script>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>