Commit da69917f authored by Tristan Cavelier's avatar Tristan Cavelier

Check ERP5Storage parameter bug fix

parent 45dbbb5c
......@@ -27,7 +27,7 @@
"use strict";
function ERP5Storage(spec) {
if (typeof spec.url !== 'string' && !spec.url) {
if (typeof spec.url !== "string" || !spec.url) {
throw new TypeError("ERP5 'url' must be a string " +
"which contains more than one character.");
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment