Visitar URL original
fixed bug · Morphinity/morphinity.github.io@d4755c6 · GitHub
Skip to content

Commit d4755c6

Browse files
committed
fixed bug
1 parent 462367d commit d4755c6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎_layouts/default.html‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@
7575
var currLocation = document.location.href;
7676
var i = 0;
7777
while(i < blogs.length) {
78-
if(currLocation === blogs[i]["link"])
78+
if(currLocation === blogs[i])
7979
break;
8080
i++;
8181
}
82-
if(action == "prev" && (i > 0 && i < blogs.length)) window.location = blogs[i - 1]["link"];
83-
else if(action == "next" && (i < blogs.length - 1)) window.location = blogs[i + 1]["link"];
82+
if(action == "prev" && (i > 0 && i < blogs.length)) window.location = blogs[i - 1];
83+
else if(action == "next" && (i < blogs.length - 1)) window.location = blogs[i + 1];
8484
}
8585

8686
</script>

0 commit comments

Comments
 (0)