check outside the loop if thisScript is still null
This commit is contained in:
parent
6726dd2e8a
commit
dad64861c6
|
|
@ -8,6 +8,9 @@ for (var i = 0, il = scripts.length; i < il; ++i) {
|
|||
thisScript = scripts[i];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (thisScript === null) {
|
||||
// should never happen
|
||||
throw new Error("Error: tarteaucitron.js script not found");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue