Display error screen when sharing a hidden hash

This commit is contained in:
yflory 2020-01-28 11:37:28 +01:00
parent 6183401a6f
commit 61d937d601
2 changed files with 5 additions and 2 deletions

View File

@ -274,8 +274,7 @@ define([
// Hidden hash: can't find the channel in our drives: abort // Hidden hash: can't find the channel in our drives: abort
var noPadData = function (err) { var noPadData = function (err) {
console.error(err); sframeChan.event("EV_PAD_NODATA", err);
// XXX Display error screen in inner
}; };
// Hidden hash: can't find requestd edit URL in our drives: ask // Hidden hash: can't find requestd edit URL in our drives: ask
var badPadData = function (cb) { var badPadData = function (cb) {

View File

@ -603,6 +603,10 @@ define([
UI.addTooltips(); UI.addTooltips();
ctx.sframeChan.on("EV_PAD_NODATA", function (err) {
UI.errorLoadingScreen(Messages.safeLinks_error);
});
ctx.sframeChan.on("EV_PAD_PASSWORD", function (cfg) { ctx.sframeChan.on("EV_PAD_PASSWORD", function (cfg) {
UIElements.displayPasswordPrompt(funcs, cfg); UIElements.displayPasswordPrompt(funcs, cfg);
}); });