aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/publishDebugInfo/index.ts
blob: 80714a10484db535afeaa605adcd4c7f021a76e6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { state as ModalState } from './store';

export { default as Component } from './Component';

const state = ModalState;
const debug = require('../../preload-safe-debug')(
  'Ferdium:feature:publishDebugInfo',
);

export default function initialize() {
  debug('Initialize publishDebugInfo feature');

  function showModal() {
    state.isModalVisible = true;
  }

  window['ferdium'].features.publishDebugInfo = {
    state,
    showModal,
  };
}