Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Type of change
Checklist
Changes
新增 开发者工具提示信息(devtools warning) 功能。
当用户通过明确用于打开浏览器开发者工具的快捷键(如
F12、Ctrl+Shift+I/J/C、Cmd+Option+I/J/C等)尝试打开开发者工具时,页面顶部会显示一次提示卡片,用于展示自定义的提示信息。提示仅展示一次,不阻断用户操作,也不干扰开发者工具的正常使用。提示是否启用、内容与显示时长可在siteConfig中配置。How To Test
启动
打开页面后,使用以下任意快捷键尝试打开开发者工具:
F12Ctrl + Shift + I / J / CCmd + Option + I / J / C(macOS)确认页面顶部显示提示卡片,并在进度条结束后自动隐藏
刷新页面后再次触发,确认提示只会显示一次