mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 20:38:52 +00:00
16 lines
337 B
TypeScript
16 lines
337 B
TypeScript
import process from 'node:process';
|
|
|
|
const editorIndex = {
|
|
0: 0,
|
|
1: 1,
|
|
}[process.env.MULTIPLE_EDITOR_INDEX ?? ''];
|
|
export const scope =
|
|
editorIndex == null
|
|
? undefined
|
|
: editorIndex === 0
|
|
? 'FIRST | '
|
|
: 'SECOND | ';
|
|
export const multiEditor = scope != null;
|
|
|
|
export const currentEditorIndex = editorIndex ?? 0;
|