mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-08 05:57:02 +09:00
JS-1130: remove _dev folder logic
This commit is contained in:
parent
652d596109
commit
862414ba9f
1 changed files with 4 additions and 5 deletions
|
@ -70,14 +70,13 @@ remote.initialize();
|
|||
Util.setAppPath(path.join(__dirname));
|
||||
|
||||
function waitForLibraryAndCreateWindows () {
|
||||
let userDataPath = ConfigManager.config.userDataPath || app.getPath('userData');
|
||||
const currentPath = app.getPath('userData');
|
||||
const { userDataPath } = ConfigManager.config;
|
||||
|
||||
if (is.development) {
|
||||
userDataPath = path.join(userDataPath, '_dev');
|
||||
if (userDataPath && (userDataPath != currentPath)) {
|
||||
app.setPath('userData', userDataPath);
|
||||
};
|
||||
|
||||
app.setPath('userData', userDataPath);
|
||||
|
||||
if (process.env.ANYTYPE_USE_SIDE_SERVER) {
|
||||
// use the grpc server started from the outside
|
||||
Server.setAddress(process.env.ANYTYPE_USE_SIDE_SERVER);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue