Skip to content
Source
Sign inSign up
fuko/trytanstackdb.com
Open History to see the last commit

dev-config.ts

10 lines340 Bytes

1/**
2 * How long the note editor waits after the last change before it saves.
3 * Dev builds can change it from the page URL, `?saveDelay=<ms>` (see
4 * `api/dev-console.ts`), to make the wait long enough for scripted tests.
5 */
6export let editorSaveDelayMs = 500;
7​
8export function setEditorSaveDelay(ms: number) {
9 editorSaveDelayMs = ms;