[FIX] web: domains might be undefined, so we check

Introduced recently in b2d66d0c14

opw-726354
Closes #16068
This commit is contained in:
Wolfgang Taferner 2017-03-26 21:00:36 +02:00 committed by Nicolas Martinelli
parent 59a6397867
commit 8e7f34c323
1 changed files with 2 additions and 1 deletions

View File

@ -854,7 +854,8 @@
var result_domain = [];
// Normalize only if the first domain is the array ["|"] or ["!"]
var need_normalization = (
domains.length > 0
domains
&& domains.length > 0
&& domains[0].length === 1
&& (domains[0][0] === "|" || domains[0][0] === "!")
);