File tree Expand file tree Collapse file tree 2 files changed +18
-14
lines changed Expand file tree Collapse file tree 2 files changed +18
-14
lines changed Original file line number Diff line number Diff line change @@ -25,15 +25,19 @@ var img = document.createElement("img");
25
25
26
26
current_path = document . location ;
27
27
if ( document . location . origin == "null" ) { //local file
28
+
29
+ console . loc ( 'local' ) ;
28
30
if ( ( document . location . pathname . split ( '/' ) ) . includes ( "rst" ) ) {
29
31
img . src = "../_images/plankton-only.svg" ;
30
32
}
31
33
else {
32
- img . src = ".. /_images/plankton-only.svg" ;
34
+ img . src = "./_images/plankton-only.svg" ;
33
35
}
34
36
}
35
37
else {
38
+ console . loc ( 'remote' ) ;
36
39
img . src = document . location . href . split ( '/' ) . slice ( 0 , 5 ) . join ( "/" ) + "_images/plankton-only.svg" ;
40
+ console . log ( img . src )
37
41
// if ((document.location.pathname.split('/')).includes("rst")) {
38
42
// img.src = "../../_images/plankton-only.svg";
39
43
// }
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments