fix server with subpath ()

This commit is contained in:
Djorkaeff Alexandre 2019-10-23 16:26:57 -03:00 committed by Guilherme Gazzo
parent 6df7d7b3c3
commit 2867f845df
1 changed files with 1 additions and 1 deletions
app/lib/database

View File

@ -52,7 +52,7 @@ class DB {
}
setActiveDB(database = '') {
const path = database.replace(/(^\w+:|^)\/\//, '');
const path = database.replace(/(^\w+:|^)\/\//, '').replace(/\//, '.');
const dbName = `${ appGroupPath }${ path }.db`;
const adapter = new SQLiteAdapter({