Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
RocketChat
Rocket.Chat.ReactNative
Commits
8814fc53
Unverified
Commit
8814fc53
authored
Feb 05, 2020
by
Hiroki Ishiura
Committed by
GitHub
Feb 05, 2020
Browse files
[FIX] Server with subdirs (#1646)
parent
97cc1831
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/lib/database/index.js
View file @
8814fc53
...
...
@@ -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
({
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment