aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/publishDebugInfo/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/features/publishDebugInfo/index.ts')
-rw-r--r--src/features/publishDebugInfo/index.ts14
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 @@
1import { state as ModalState } from './store'; 1import { state } from './store';
2 2
3export { default as Component } from './Component'; 3export { default as Component } from './Component';
4 4
5const state = ModalState;
6const debug = require('../../preload-safe-debug')( 5const debug = require('../../preload-safe-debug')(
7 'Ferdium:feature:publishDebugInfo', 6 'Ferdium:feature:publishDebugInfo',
8); 7);
9 8
10export default function initialize() { 9export 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}