2025-05-27 14:14:20 +08:00

21 lines
633 B
HTML

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8"/>
<title>加载中...</title>
<script>
chrome.storage.local.get(["token", "loginAt"], (res) => {
const maxAge = 24 * 60 * 60 * 1000;
const now = Date.now();
const popup = (!res.token || !res.loginAt || (now - res.loginAt > maxAge))
? "pages/login.html"
: "pages/popup.html";
window.location.href = chrome.runtime.getURL(popup);
});
</script>
</head>
<body>
<div style="padding: 1rem; font-size: 14px;">正在加载,请稍候...</div>
</body>
</html>