Skip to content

Commit c6534b4

Browse files
committed
fix: 将 CNKI cookie 过期时间从 10 分钟调整为 5 分钟
1 parent 62563dc commit c6534b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/cookiebox.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export class MyCookieSandbox {
1010
private _cnkiHomeCookieLastUpdateTime: number = 0;
1111
private _initPromise: Promise<void> | null = null;
1212
private _captchaPromise: Promise<Zotero.CookieSandbox> | null = null;
13-
private static readonly COOKIE_EXPIRE_MS = 10 * 60 * 1000; // 10 minutes
13+
private static readonly COOKIE_EXPIRE_MS = 5 * 60 * 1000; // 10 minutes
1414

1515
constructor() {
1616
this._CNKIHomeCookieBox = null;

0 commit comments

Comments
 (0)