aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/publishDebugInfo/index.ts
diff options
context:
space:
mode:
authorLibravatar kytwb <kytwb@pm.me>2021-12-16 12:02:18 +0100
committerLibravatar kytwb <kytwb@pm.me>2021-12-16 12:02:18 +0100
commit36c23f67c3783b3986b21ea85d56fc0e37941a0c (patch)
tree3c9138790d672ff84071bba8e441149c245a80e7 /src/features/publishDebugInfo/index.ts
parentBumped up ferdi to '5.6.3' (diff)
parentIterate on README [skip ci] (diff)
downloadferdium-app-36c23f67c3783b3986b21ea85d56fc0e37941a0c.tar.gz
ferdium-app-36c23f67c3783b3986b21ea85d56fc0e37941a0c.tar.zst
ferdium-app-36c23f67c3783b3986b21ea85d56fc0e37941a0c.zip
Merge branch 'develop' into release
# Conflicts: # package-lock.json # package.json
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}