give mobile users a way to escape from the error screen (aside from ESC)

This commit is contained in:
ansuz 2021-08-18 14:55:31 +05:30
parent cf7593553b
commit fe256e8282
1 changed files with 4 additions and 3 deletions

View File

@ -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 () {