diff options
Diffstat (limited to 'src/features/publishDebugInfo/index.ts')
-rw-r--r-- | src/features/publishDebugInfo/index.ts | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/features/publishDebugInfo/index.ts b/src/features/publishDebugInfo/index.ts index 80714a104..cbbdbc594 100644 --- a/src/features/publishDebugInfo/index.ts +++ b/src/features/publishDebugInfo/index.ts | |||
@@ -1,21 +1,17 @@ | |||
1 | import { state as ModalState } from './store'; | 1 | import { state } from './store'; |
2 | 2 | ||
3 | export { default as Component } from './Component'; | 3 | export { default as Component } from './Component'; |
4 | 4 | ||
5 | const state = ModalState; | ||
6 | const debug = require('../../preload-safe-debug')( | 5 | const debug = require('../../preload-safe-debug')( |
7 | 'Ferdium:feature:publishDebugInfo', | 6 | 'Ferdium:feature:publishDebugInfo', |
8 | ); | 7 | ); |
9 | 8 | ||
10 | export default function initialize() { | 9 | export default function initialize(): void { |
11 | debug('Initialize publishDebugInfo feature'); | 10 | debug('Initialize publishDebugInfo feature'); |
12 | 11 | ||
13 | function showModal() { | 12 | const showModal = (): void => { |
14 | state.isModalVisible = true; | 13 | state.isModalVisible = true; |
15 | } | ||
16 | |||
17 | window['ferdium'].features.publishDebugInfo = { | ||
18 | state, | ||
19 | showModal, | ||
20 | }; | 14 | }; |
15 | |||
16 | window['ferdium'].features.publishDebugInfo = { state, showModal }; | ||
21 | } | 17 | } |