From e5b9f089fb95d6f3c48110c89b2d7b904b889b5c Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 10 Jan 2018 11:47:52 +0100 Subject: [PATCH] Fix undefined webchannel when uploading a file --- www/common/outer/async-store.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/common/outer/async-store.js b/www/common/outer/async-store.js index e48452b6d..7d3d15dfd 100644 --- a/www/common/outer/async-store.js +++ b/www/common/outer/async-store.js @@ -525,11 +525,11 @@ define([ var h = p.hashData; var owners; - if (Store.channel && Util.base64ToHex(h.channel) === Store.channel.wc.id) { + if (Store.channel && Store.channel.wc && Util.base64ToHex(h.channel) === Store.channel.wc.id) { owners = Store.channel.data.owners || undefined; } var expire; - if (Store.channel && Util.base64ToHex(h.channel) === Store.channel.wc.id) { + if (Store.channel && Store.channel.wc && Util.base64ToHex(h.channel) === Store.channel.wc.id) { expire = +Store.channel.data.expire || undefined; }