mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 09:33:32 +01:00
fix: remove turbo experiment again
This commit is contained in:
@@ -10,18 +10,18 @@ type Props = MarkdownLayoutProps<{}>;
|
||||
const { headings } = Astro.props;
|
||||
---
|
||||
|
||||
<script is:inline>
|
||||
<script>
|
||||
window.addEventListener('load', () => {
|
||||
const headings = document.querySelectorAll(
|
||||
'div.level-h1 > h1, div.level-h2 > h2, div.level-h3 > h3, div.level-h4 > h4',
|
||||
);
|
||||
|
||||
const headingsObserver = new IntersectionObserver(
|
||||
(entries, observer) => {
|
||||
(entries) => {
|
||||
entries.forEach((entry) => {
|
||||
if (entry.isIntersecting) {
|
||||
const location = window.location.toString().split('#')[0];
|
||||
history.replaceState(null, null, location + '#' + entry.target.id);
|
||||
history.replaceState(null, '', location + '#' + entry.target.id);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
@@ -32,10 +32,6 @@ const props = Astro.props;
|
||||
<title>discord.js</title>
|
||||
<meta content="minimum-scale=1, initial-scale=1, width=device-width" name="viewport" />
|
||||
<meta content="#5865f2" name="theme-color" />
|
||||
|
||||
<script>
|
||||
import '../scripts/router.js';
|
||||
</script>
|
||||
</head>
|
||||
<body class="dark:bg-dark-800 bg-white">
|
||||
<script is:inline>
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
import * as turbo from '@hotwired/turbo';
|
||||
|
||||
turbo.start();
|
||||
Reference in New Issue
Block a user