Disable desktop exit in browsers

This commit is contained in:
MeatSlicer Developer committed 2026-07-30 23:48:49 +10:00
1 parent 92491dd06e
commit b8b5c360f2
3 files changed
+20 -18

No files matched your search

+1
View File
@@ -1582,6 +1582,7 @@ check('restart works', ctx.G.mode === 'play' && ctx.G.floor === 1);
console.log('== confirmed destructive actions ==');
{
check('web renderer disables desktop-only exit', ctx.canQuitDesktop() === false);
let fired = 0;
ctx.confirmAction('probe', () => fired++);
check('first destructive action arms confirmation without firing', ctx.G.confirmAction === 'probe' && ctx.G.confirmT > 2.9 && fired === 0);