From fe256e8282fc982125a9c3691c03888bdcec1627 Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 18 Aug 2021 14:55:31 +0530 Subject: [PATCH] give mobile users a way to escape from the error screen (aside from ESC) --- www/common/sframe-common.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/www/common/sframe-common.js b/www/common/sframe-common.js index c05bdfe3f..206137c86 100644 --- a/www/common/sframe-common.js +++ b/www/common/sframe-common.js @@ -921,9 +921,10 @@ define([ }); ctx.sframeChan.on('EV_WORKER_TIMEOUT', function () { - UI.errorLoadingScreen(Messages.timeoutError, false, function () { // XXX 4.11.0 mobile users can't necessarily hit 'ESC' as this message suggests. provice a click option - funcs.gotoURL(''); - }); + var message = UI.setHTML(h('span'), Messages.timeoutError); + var cb = Util.once(function () { funcs.gotoURL(''); }); + $(message).find('em').on('touchend', cb); + UI.errorLoadingScreen(message, false, cb); }); ctx.sframeChan.on('EV_CHROME_68', function () {