Skip to content

Commit

Permalink
fix: coder-1024.html (#2041)
Browse files Browse the repository at this point in the history
  • Loading branch information
xuanzhi33 authored Feb 19, 2024
1 parent 22024f6 commit 913a8bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/coder-1024.html
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@
}

function fetchNewDestination() {
fetch("https://api.travellings.cn/random?tag=coder") // Update the API endpoint
const tag = localStorage.getItem("t_preference_tag") || "tech";
fetch("https://api.travellings.cn/random?tag=" + tag)
.then(response => response.json())
.then(data => {
if (data.success && data.data.length > 0) {
Expand Down

0 comments on commit 913a8bc

Please sign in to comment.