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 cd05e21d47
commit ce7b6750c9

View file

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