fix server with subpath (#1322)
This commit is contained in:
parent
6df7d7b3c3
commit
2867f845df
|
@ -52,7 +52,7 @@ class DB {
|
||||||
}
|
}
|
||||||
|
|
||||||
setActiveDB(database = '') {
|
setActiveDB(database = '') {
|
||||||
const path = database.replace(/(^\w+:|^)\/\//, '');
|
const path = database.replace(/(^\w+:|^)\/\//, '').replace(/\//, '.');
|
||||||
const dbName = `${ appGroupPath }${ path }.db`;
|
const dbName = `${ appGroupPath }${ path }.db`;
|
||||||
|
|
||||||
const adapter = new SQLiteAdapter({
|
const adapter = new SQLiteAdapter({
|
||||||
|
|
Loading…
Reference in New Issue