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.ts19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/features/publishDebugInfo/index.ts b/src/features/publishDebugInfo/index.ts
new file mode 100644
index 000000000..43841b530
--- /dev/null
+++ b/src/features/publishDebugInfo/index.ts
@@ -0,0 +1,19 @@
1import { state as ModalState } from './store';
2
3export { default as Component } from './Component';
4
5const state = ModalState;
6const debug = require('debug')('Ferdi:feature:publishDebugInfo');
7
8export default function initialize() {
9 debug('Initialize publishDebugInfo feature');
10
11 function showModal() {
12 state.isModalVisible = true;
13 }
14
15 window['ferdi'].features.publishDebugInfo = {
16 state,
17 showModal,
18 };
19}