mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-12 19:49:59 +05:00
leave notes about a mobile-user edge-case
This commit is contained in:
parent
610cd4570e
commit
385c0d4d88
@ -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(); }
|
||||
|
||||
@ -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(); }
|
||||
|
||||
@ -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") {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user