Display error screen when sharing a hidden hash

pull/1/head
yflory 5 years ago
parent 6183401a6f
commit 61d937d601

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

@ -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);
}); });

Loading…
Cancel
Save