[FIX] Server with subdirs (#1646)
This commit is contained in:
parent
97cc18313d
commit
8814fc539d
|
@ -60,7 +60,7 @@ class DB {
|
||||||
}
|
}
|
||||||
|
|
||||||
setShareDB(database = '') {
|
setShareDB(database = '') {
|
||||||
const path = database.replace(/(^\w+:|^)\/\//, '').replace(/\//, '.');
|
const path = database.replace(/(^\w+:|^)\/\//, '').replace(/\//g, '.');
|
||||||
const dbName = `${ appGroupPath }${ path }.db`;
|
const dbName = `${ appGroupPath }${ path }.db`;
|
||||||
|
|
||||||
const adapter = new SQLiteAdapter({
|
const adapter = new SQLiteAdapter({
|
||||||
|
@ -83,7 +83,7 @@ class DB {
|
||||||
}
|
}
|
||||||
|
|
||||||
setActiveDB(database = '') {
|
setActiveDB(database = '') {
|
||||||
const path = database.replace(/(^\w+:|^)\/\//, '').replace(/\//, '.');
|
const path = database.replace(/(^\w+:|^)\/\//, '').replace(/\//g, '.');
|
||||||
const dbName = `${ appGroupPath }${ path }.db`;
|
const dbName = `${ appGroupPath }${ path }.db`;
|
||||||
|
|
||||||
const adapter = new SQLiteAdapter({
|
const adapter = new SQLiteAdapter({
|
||||||
|
|
Loading…
Reference in New Issue