Unverified Commit 8814fc53 authored by Hiroki Ishiura's avatar Hiroki Ishiura Committed by GitHub
Browse files

[FIX] Server with subdirs (#1646)

parent 97cc1831
......@@ -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({
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment