MCPcopy Create free account
hub / github.com/bearlyai/OpenADE / forceEnableDevTools

Function forceEnableDevTools

projects/electron/src/executor.ts:28–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26const store = new Store()
27
28const forceEnableDevTools = () => {
29 const wasEnabled = isDevToolsEnabled()
30 store.set("enable-dev-tools", true)
31 if (!wasEnabled) {
32 app.relaunch()
33 app.quit()
34 } else {
35 currentExecutor().window?.webContents.openDevTools()
36 }
37}
38
39const isDevToolsEnabled = (): boolean => {
40 if (store.get("enable-dev-tools") === true) {

Callers 1

loadFunction · 0.85

Calls 3

isDevToolsEnabledFunction · 0.85
currentExecutorFunction · 0.85
setMethod · 0.65

Tested by

no test coverage detected