Disable desktop exit in browsers
This commit is contained in:
1 parent
92491dd06e
commit
b8b5c360f2
3 files changed
+20
-18
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user