mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-03 18:45:48 +00:00
Fix remote storage validation
This commit is contained in:
@@ -197,7 +197,7 @@ function Remote(opts, trace) {
|
|||||||
throw new TypeError('Remote "ping" configuration is not a Number');
|
throw new TypeError('Remote "ping" configuration is not a Number');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!/^(undefined|number)$/.test(typeof opts.storage)) {
|
if (!/^(undefined|object)$/.test(typeof opts.storage)) {
|
||||||
throw new TypeError('Remote "storage" configuration is not an Object');
|
throw new TypeError('Remote "storage" configuration is not an Object');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user