Fix: use isArray
This commit is contained in:
parent
c4c4b5638e
commit
b4dfe5c836
|
@ -1677,7 +1677,7 @@ function fromMozillaFormat() {
|
||||||
.catch(showError);
|
.catch(showError);
|
||||||
|
|
||||||
function showError(errors) {
|
function showError(errors) {
|
||||||
if (!errors.join) {
|
if (!Array.isArray(errors)) {
|
||||||
errors = [errors];
|
errors = [errors];
|
||||||
}
|
}
|
||||||
showHelp(t('styleFromMozillaFormatError'), $element({
|
showHelp(t('styleFromMozillaFormatError'), $element({
|
||||||
|
|
Loading…
Reference in New Issue
Block a user