Fix undefined webchannel when uploading a file
This commit is contained in:
parent
73126ed597
commit
e5b9f089fb
@ -525,11 +525,11 @@ define([
|
|||||||
var h = p.hashData;
|
var h = p.hashData;
|
||||||
|
|
||||||
var owners;
|
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;
|
owners = Store.channel.data.owners || undefined;
|
||||||
}
|
}
|
||||||
var expire;
|
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;
|
expire = +Store.channel.data.expire || undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user