fix an error
This commit is contained in:
parent
9dafbae3d5
commit
97e5010443
1 changed files with 10 additions and 7 deletions
|
@ -148,7 +148,9 @@ window.addEventListener("load", () => {
|
||||||
dataElement.remove();
|
dataElement.remove();
|
||||||
|
|
||||||
// Open nested openeded directories
|
// Open nested openeded directories
|
||||||
const fullpath = window.location.href.split("?")[1].substring(2);
|
const infoURL = window.location.href.split("?");
|
||||||
|
if (infoURL.length > 1) {
|
||||||
|
const fullpath = infoURL[1].substring(2);
|
||||||
const path = fullpath.substring(0, fullpath.lastIndexOf("/"));
|
const path = fullpath.substring(0, fullpath.lastIndexOf("/"));
|
||||||
const last_openeded = deepestNodeOpened(
|
const last_openeded = deepestNodeOpened(
|
||||||
path.split("/"),
|
path.split("/"),
|
||||||
|
@ -156,6 +158,7 @@ window.addEventListener("load", () => {
|
||||||
);
|
);
|
||||||
|
|
||||||
uncollapse(last_openeded);
|
uncollapse(last_openeded);
|
||||||
|
}
|
||||||
|
|
||||||
// Fix SVG images
|
// Fix SVG images
|
||||||
svgDarkTheme();
|
svgDarkTheme();
|
||||||
|
|
Loading…
Reference in a new issue