leave notes about a mobile-user edge-case

This commit is contained in:
ansuz 2022-09-16 18:42:28 +05:30
parent 610cd4570e
commit 385c0d4d88
3 changed files with 5 additions and 1 deletions

View File

@ -1041,7 +1041,7 @@ define([
});
if (exitable) {
$(window).focus();
$(window).keydown(function (e) {
$(window).keydown(function (e) { // XXX what if they don't have a keyboard?
if (e.which === 27) {
$loading.hide();
if (typeof(exitable) === "function") { exitable(); }

View File

@ -2820,6 +2820,8 @@ define([
if (err.type === 'EEXPIRED') {
msg = Messages.expiredError;
if (err.loaded) {
// XXX You can still use the current version in read-only mode by pressing Esc.
// what if they don't have a keyboard (ie. mobile)
msg += Messages.errorCopy;
}
if (toolbar && typeof toolbar.deleted === "function") { toolbar.deleted(); }

View File

@ -856,6 +856,8 @@ define([
ctx.sframeChan.on('EV_LOADING_ERROR', function (err) {
var msg = err;
if (err === 'DELETED') {
// XXX You can still use the current version in read-only mode by pressing Esc.
// what if they don't have a keyboard (ie. mobile)
msg = Messages.deletedError + '<br>' + Messages.errorRedirectToHome;
}
if (err === "INVALID_HASH") {