Display error screen when sharing a hidden hash
This commit is contained in:
1 parent
6183401a6f
commit
61d937d601
2 files changed
+5
-2
No files matched your search
@@ -274,8 +274,7 @@ define([
|
||||
|
||||
// Hidden hash: can't find the channel in our drives: abort
|
||||
var noPadData = function (err) {
|
||||
console.error(err);
|
||||
// XXX Display error screen in inner
|
||||
sframeChan.event("EV_PAD_NODATA", err);
|
||||
};
|
||||
// Hidden hash: can't find requestd edit URL in our drives: ask
|
||||
var badPadData = function (cb) {
|
||||
|
||||
@@ -603,6 +603,10 @@ define([
|
||||
|
||||
UI.addTooltips();
|
||||
|
||||
ctx.sframeChan.on("EV_PAD_NODATA", function (err) {
|
||||
UI.errorLoadingScreen(Messages.safeLinks_error);
|
||||
});
|
||||
|
||||
ctx.sframeChan.on("EV_PAD_PASSWORD", function (cfg) {
|
||||
UIElements.displayPasswordPrompt(funcs, cfg);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user