1
0
Fork 0
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:
Taly 2022-07-20 20:16:47 +03:00
parent c740b97a26
commit 6f6117df0c

View file

@ -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