client: add noWarning option

This commit is contained in:
jean-emmanuel 2026-03-02 10:48:36 +01:00
parent 91fb688d9d
commit 27e3e6f1b3
3 changed files with 7 additions and 1 deletions

View file

@ -16,6 +16,9 @@
- editor
- preserve code editor undo history between consecutive edits of a same widget's property
- preserve fullscreen code editor focus when saving / submitting
- client
- add `noWarning` client option
## 1.30.1

View file

@ -19,6 +19,7 @@ Client options can be set either with the server's `--client-options` option, or
| virtualKeyboard | 1 / 0 | 0 | (desktop only) set to 1 to enable the virtual keyboard by default |
| notifications | 1 / 0 | 1 | set to 0 to hide notifications by default |
| title | string | '' | replace window title |
| noWarning | 1 / 0 | 0 | set to 0 to disable unsaved session warnings |
Example:

View file

@ -1024,7 +1024,9 @@ class Editor {
pushHistory(indexes) {
this.unsavedSession = true
if (!ENV.noWarning) {
this.unsavedSession = true
}
if (this.historyState > -1) {
this.history.splice(0, this.historyState + 1)