mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-08-07 14:35:26 +02:00
Update table-of-content.js
This commit is contained in:
parent
c740b97a26
commit
6f6117df0c
1 changed files with 1 additions and 1 deletions
|
@ -275,7 +275,7 @@ export default class TableOfContent {
|
|||
/**
|
||||
* Getting the HTML element
|
||||
*/
|
||||
const htmlElement = document.getElementsByTagName('html')[0];
|
||||
const htmlElement = document.documentElement;
|
||||
|
||||
/**
|
||||
* If element is not found then return 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue