Skip to content

Commit

Permalink
Update right.html
Browse files Browse the repository at this point in the history
  • Loading branch information
jill-ye authored May 20, 2024
1 parent 753ae61 commit a8053eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _includes/right.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
var texts = [ {% for tag in site.tags %}'{{ tag[0] }}',{% endfor %}];
var tc = TagCloud('.tagcloud', texts);
$(".tagcloud--item").click(function() {
extraWindow = window.open('/tag/#' + $(this).text(), '_self');
if(extraWindow){
extraWindow.location.reload();
window.open('/tag/#' + $(this).text(), '_self');
if (window.location.href.startsWith(window.location.origin+"/tag/")) {
location.reload();
}
});
</script>
Expand Down

0 comments on commit a8053eb

Please sign in to comment.