重构首页为机构落地页,新增终端路由,时区感知 Polymarket 市场发现
This commit is contained in:
@@ -54,9 +54,10 @@ export function getAnalyticsSessionId() {
|
||||
|
||||
export function markAnalyticsOnce(key: string, scope: "local" | "session" = "session") {
|
||||
if (!isClient()) return false;
|
||||
const storage = scope === "local" ? window.localStorage : window.sessionStorage;
|
||||
const normalizedKey = `polyweather:analytics:once:${key}`;
|
||||
try {
|
||||
const storage = scope === "local" ? window.localStorage : window.sessionStorage;
|
||||
if (!storage) return true;
|
||||
if (storage.getItem(normalizedKey) === "1") {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user