Fix double users being created

This commit is contained in:
Prayag committed 2022-03-11 10:47:33 +05:30
1 parent 5bc2985fce
commit af678d9445
2 files changed
+1 -23

No files matched your search

-19
View File
@@ -1,19 +0,0 @@
const { Jellyfin } = require('@thornbill/jellyfin-sdk');
class ApiClient {
constructor() {
this.apiClient = new Jellyfin({
clientInfo: {
name: 'Mordern Jellyfin client in Electron',
version: "0.0.1"
},
deviceInfo: {
name: "JellyPlayer",
id: "JellyPlayerClient"
}
});
this.api = this.apiClient.createApi(config.get('serverUrl'));
}
}
module.exports = ApiClient;
+1 -4
View File
@@ -29,7 +29,7 @@ class LoginPage {
icon: icon
});
this.window.loadFile("./src/render/html/login.html");
// this.window.webContents.openDevTools();
this.window.webContents.openDevTools();
this.window.setMenu(null);
this.window.maximize();
}
@@ -56,10 +56,7 @@ class LoginPage {
error = "The given server url is not a Jellyfin server url";
}
});
// this.apiclient = new ApiClient();
});
} else if (config.get('serverGo') == true) {
this.getUserlist();
}
}
getUserlist() {