Skip to content

Commit c973f01

Browse files
committed
ok
1 parent 1c9f723 commit c973f01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Elastic.Markdown/Assets/pages-nav.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,15 +119,15 @@ export function initNav() {
119119
a.addEventListener('click', (e) => {
120120
e.preventDefault();
121121
history.pushState(null, '', a.href);
122-
122+
const markdownContentContainer = $('.markdown-content');
123+
markdownContentContainer.innerHTML = 'loading...';
123124
// download .markdown-content from the href
124125
const url = a.href;
125126
fetch(url)
126127
.then(response => response.text())
127128
.then(text => {
128129
const doc = new DOMParser().parseFromString(text, 'text/html')
129130
const markdownContent = $('.markdown-content', doc);
130-
const markdownContentContainer = $('.markdown-content');
131131
const toc = $('#toc-nav', doc);
132132
const tocContainer = $('#toc-nav');
133133
if (toc && tocContainer) {

0 commit comments

Comments
 (0)