Fix undefined webchannel when uploading a file

pull/1/head
yflory 7 years ago committed by Caleb James DeLisle
parent ca3697ae3a
commit 13b704d9f6

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

Loading…
Cancel
Save