From e5558b516c16a847d911ddba7378d806511dd778 Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 26 Jul 2021 15:02:48 +0530 Subject: [PATCH] guard against a typeError when drive-less users try to send a pad-burned notification --- www/common/outer/async-store.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/www/common/outer/async-store.js b/www/common/outer/async-store.js index 6aacd4a1b..30b71f1bd 100644 --- a/www/common/outer/async-store.js +++ b/www/common/outer/async-store.js @@ -2058,8 +2058,15 @@ define([ } catch (e) { console.error(e); } + // Tell all the owners that the pad was deleted from the server - var curvePublic = store.proxy.curvePublic; + var curvePublic; + try { + curvePublic = store.proxy.curvePublic; + } catch (err) { + console.error(err); + return; // XXX anons can't send notifications... + } m.forEach(function (obj) { var mb = JSON.parse(obj); if (mb.curvePublic === curvePublic) { return; }