[FIX] Server with subdirs (#1646)

This commit is contained in:
Hiroki Ishiura 2020-02-05 23:01:01 +09:00 committed by GitHub
parent 97cc18313d
commit 8814fc539d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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