diff options
author | kytwb <kytwb@pm.me> | 2021-12-16 12:02:18 +0100 |
---|---|---|
committer | kytwb <kytwb@pm.me> | 2021-12-16 12:02:18 +0100 |
commit | 36c23f67c3783b3986b21ea85d56fc0e37941a0c (patch) | |
tree | 3c9138790d672ff84071bba8e441149c245a80e7 /src/features/publishDebugInfo/index.ts | |
parent | Bumped up ferdi to '5.6.3' (diff) | |
parent | Iterate on README [skip ci] (diff) | |
download | ferdium-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.ts | 19 |
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 @@ | |||
1 | import { state as ModalState } from './store'; | ||
2 | |||
3 | export { default as Component } from './Component'; | ||
4 | |||
5 | const state = ModalState; | ||
6 | const debug = require('debug')('Ferdi:feature:publishDebugInfo'); | ||
7 | |||
8 | export 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 | } | ||