We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
options.remote
1 parent 005118d commit 183af82Copy full SHA for 183af82
index.js
@@ -11,7 +11,7 @@ function Store (dbName, options) {
11
if (!(this instanceof Store)) return new Store(dbName, options)
12
if (typeof dbName !== 'string') throw new Error('Must be a valid string.')
13
14
- if (!options || (!options.remote && !options.remoteBaseUrl)) {
+ if (!options || (!('remote' in options) && !options.remoteBaseUrl)) {
15
throw new Error('options.remote or options.remoteBaseUrl is required')
16
}
17
0 commit comments