mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-29 00:25: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');
|
||||
}
|
||||
|
||||
if (!/^(undefined|number)$/.test(typeof opts.storage)) {
|
||||
if (!/^(undefined|object)$/.test(typeof opts.storage)) {
|
||||
throw new TypeError('Remote "storage" configuration is not an Object');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user