Skip to content

Commit 76e02e3

Browse files
js-viewer, nan issue bug fix
1 parent 980011e commit 76e02e3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/source/_static/pop-plankton.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@ var vpos = 'bottom:' + (Math.floor(Math.random() * 80) + 10) + '%;';
2323

2424
var img = document.createElement("img");
2525

26-
//"../_images/plankton-only.svg";
26+
current_path = document.location;
27+
2728
if ((document.location.pathname.split('/')).includes("rst")){
2829
img.src = "../../_images/plankton-only.svg";
2930
}
3031
else if ((document.location.pathname.split('/')).slice(-1)==""){
31-
img.src = "_images/plankton-only.svg";
32+
img.src = "./_images/plankton-only.svg";
3233
}
3334
else{
3435
img.src = "../_images/plankton-only.svg";

0 commit comments

Comments
 (0)