1
0
Fork 0
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:
Andrew Simachev 2024-01-30 16:29:18 +01:00
parent 652d596109
commit 862414ba9f
No known key found for this signature in database
GPG key ID: 49A163D0D14E6FD8

View file

@ -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);