Skip to content

Commit a2476f0

Browse files
committed
Remove tip container too
1 parent 4287e53 commit a2476f0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/js/ra-doc-exec.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import * as babel from 'https://esm.sh/prettier@3.5.1/plugins/babel';
55
import * as estree from 'https://esm.sh/prettier@3.5.1/plugins/estree';
66
import { marked } from 'https://esm.sh/marked@15.0.7';
77

8-
var tipElement, allMenus, navLinks, versionsLinks;
8+
var tipElement, tipContainer, allMenus, navLinks, versionsLinks;
99

1010
const showTip = async () => {
1111
const tips = await getContents('/assets/tips.md');
@@ -386,6 +386,9 @@ document.addEventListener('click', event => {
386386
if (tipElement) {
387387
tipElement.remove();
388388
}
389+
if (tipContainer) {
390+
tipContainer.remove();
391+
}
389392
window.sessionStorage.setItem(
390393
'scrollIntoView',
391394
link.closest('.sidenav') ? 'false' : 'true'
@@ -432,6 +435,7 @@ window.addEventListener('popstate', () => {
432435

433436
window.addEventListener('DOMContentLoaded', () => {
434437
tipElement = document.getElementById('tip');
438+
tipContainer = document.getElementById('tip-container');
435439
allMenus = Array.from(document.querySelectorAll(`.sidenav a.nav-link`));
436440
navLinks = allMenus
437441
.filter(link => !link.classList.contains('external'))

0 commit comments

Comments
 (0)