Update Docs with iframe navigation (#6440)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
17edc5cf1b
commit
efd6f35192
2 changed files with 13 additions and 0 deletions
|
|
@ -59,3 +59,11 @@ if (autoThemeInput) {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
// Add iframe navigation
|
||||
window.onhashchange = function() {
|
||||
window.parent.postMessage({
|
||||
type: 'navigation',
|
||||
hash: window.location.pathname + window.location.search + window.location.hash
|
||||
}, '*');
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue