Skip to content

Commit 2dacf52

Browse files
committed
remove dev tool option
1 parent 6498381 commit 2dacf52

3 files changed

Lines changed: 1 addition & 6 deletions

File tree

apps/desktop/src/main/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,6 @@ function main(): void {
320320
})
321321
await createAndLoadMainWindow()
322322
installApplicationMenu({
323-
isPackaged: app.isPackaged,
324323
config,
325324
getMainWindow,
326325
allowHttpLocalhost,

apps/desktop/src/main/menu.test.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { buildMenuTemplate, type MenuDeps } from '@/main/menu'
88

99
function makeDeps(): MenuDeps {
1010
return {
11-
isPackaged: true,
1211
config: {
1312
filePath: '/tmp/settings.json',
1413
getOrigin: vi.fn(() => 'https://sim.ai'),
@@ -84,9 +83,7 @@ describe('buildMenuTemplate', () => {
8483
})
8584

8685
it('never exposes developer tools in the application menu', () => {
87-
const deps = makeDeps()
88-
deps.isPackaged = false
89-
const view = submenu(buildMenuTemplate(deps), 'View')
86+
const view = submenu(buildMenuTemplate(makeDeps()), 'View')
9087
expect(view.some((item) => item.role === 'toggleDevTools')).toBe(false)
9188
})
9289
})

apps/desktop/src/main/menu.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ const STATUS_URL = 'https://status.sim.ai'
88
const ZOOM_STEP = 0.5
99

1010
export interface MenuDeps {
11-
isPackaged: boolean
1211
config: ConfigStore
1312
getMainWindow: () => BrowserWindow | null
1413
allowHttpLocalhost: () => boolean

0 commit comments

Comments
 (0)