Skip to content

Commit

Permalink
fix: use server_url when exist by removing judge logic, close #345
Browse files Browse the repository at this point in the history
  • Loading branch information
YunYouJun committed Sep 5, 2022
1 parent 52f2671 commit 7ff62af
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,7 @@ function initLeancloudVisitors() {
}

const api_server
= app_id.slice(-9) === '-MdYXbMMI'
? `https://${app_id.slice(0, 8).toLowerCase()}.api.lncldglobal.com`
: server_url
= server_url || `https://${app_id.slice(0, 8).toLowerCase()}.api.lncldglobal.com`

if (api_server) {
fetchData(api_server)
Expand Down

1 comment on commit 7ff62af

@vercel
Copy link

@vercel vercel bot commented on 7ff62af Sep 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.