mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-18 18:33:42 +00:00
Fix server_url for lean-analytics (#555)
This commit is contained in:
parent
966126d586
commit
6e19c4eb15
@ -86,7 +86,12 @@
|
||||
}
|
||||
};
|
||||
|
||||
const api_server = app_id.slice(-9) === '-MdYXbMMI' ? `https://${app_id.slice(0, 8).toLowerCase()}.api.lncldglobal.com` : server_url;
|
||||
let api_server;
|
||||
if (server_url) {
|
||||
api_server = server_url;
|
||||
} else if (app_id.slice(-9) === '-MdYXbMMI') {
|
||||
api_server = `https://${app_id.slice(0, 8).toLowerCase()}.api.lncldglobal.com`;
|
||||
}
|
||||
|
||||
document.addEventListener('page:loaded', () => {
|
||||
if (api_server) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user