From f4d5a7567fcb74a01d26a8a7fc62c16bef5c9c46 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 16 Oct 2018 17:49:24 +0200 Subject: [PATCH] Return an error when the pad has been deleted from the server --- www/common/cryptget.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/www/common/cryptget.js b/www/common/cryptget.js index 4afce7671..b3a3c7511 100644 --- a/www/common/cryptget.js +++ b/www/common/cryptget.js @@ -58,6 +58,11 @@ define([ Session.network = info.network; finish(Session, void 0, rt.getUserDoc()); }; + + config.onChannelError = function (info) { + finish(Session, info.error); + }; + overwrite(config, opt); Session.realtime = CPNetflux.start(config);