1// looks into the GET parameters and attempts to construct a "flow" object,
2// which would indicate bridge is to be used for one specific flow.
3// expects to find any of the following sets of parameters, varying by kind.
6// & utx = somebase64string
13const useFlowCommand = () => {
15 window.location.search
19 if ('' === arg) return;
20 const pam = arg.split('=');
21 flow[pam[0]] = pam.length <= 1 ? true : decodeURIComponent(pam[1]);
24 if (typeof flow === 'object') {
26 case COMMANDS.BITCOIN:
35 console.log('unrecognized kind of flow:', flow.kind);
36 // eslint-disable-next-line no-fallthrough
48export { COMMANDS, useFlowCommand };
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list