Skip to content

fix: 浏览器禁用站点数据时面板不再白屏,坏帧不再重置看门狗 - #112

Merged
stqfdyr merged 2 commits into
mainfrom
fix/storage-blocked
Oct 10, 2026
Merged

stqfdyr merged 2 commits into
mainfrom
fix/storage-blocked

Conversation

@stqfdyr

@stqfdyr stqfdyr commented Oct 10, 2026 •

Copy link
Copy Markdown
Collaborator
  • 读写 localStorage 包了 try/catch:浏览器对站点禁用数据时访问它会抛 SecurityError,改前 /admin/ 整页空白。读不到当作没存过,切换主题仍然生效,只是关掉页面后不保留。
  • 推送看门狗改为帧读出节点数据之后才重置,与两个官方主题一致;读不出的帧只记一条警告并丢弃,由看门狗判定断流并重连。
  • 实测:Playwright 注入 localStorage 访问抛错,改前 /admin/ 的 body 为空、一条 pageerror;改后正常渲染登录页。

@stqfdyr
stqfdyr merged commit 591e4bc into main Oct 10, 2026
1 check passed
@stqfdyr
stqfdyr deleted the fix/storage-blocked branch October 10, 2026 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant