osc: don't choke on widgets without target prop (issue #56)

This commit is contained in:
jean-emmanuel 2017-12-20 10:59:19 +01:00
parent 9faf7023e2
commit f3909b2352

View file

@ -188,7 +188,7 @@ module.exports = {
}
}
if (data.target.indexOf(null) == -1) {
if (!data.target || data.target.indexOf(null) == -1) {
var targets = []