MCPcopy Index your code
hub / github.com/ZToolsCenter/ZTools / getDevToolsMode

Function getDevToolsMode

src/main/utils/devToolsShortcut.ts:10–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8 * 从数据库读取开发者工具默认位置配置
9 */
10export function getDevToolsMode(): DevToolsMode {
11 try {
12 const data = databaseAPI.dbGet('settings-general')
13 return (data?.devToolsMode as DevToolsMode) || 'detach'
14 } catch {
15 return 'detach'
16 }
17}
18
19/**
20 * 开发者工具快捷键管理器

Callers 3

handleTitlebarActionMethod · 0.90
openPluginDevToolsMethod · 0.90
registerMethod · 0.85

Calls 1

dbGetMethod · 0.45

Tested by

no test coverage detected