Fix double users being created
This commit is contained in:
2 files changed
+1
-23
No files matched your search
@@ -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
@@ -29,7 +29,7 @@ class LoginPage {
|
|||||||
icon: icon
|
icon: icon
|
||||||
});
|
});
|
||||||
this.window.loadFile("./src/render/html/login.html");
|
this.window.loadFile("./src/render/html/login.html");
|
||||||
// this.window.webContents.openDevTools();
|
this.window.webContents.openDevTools();
|
||||||
this.window.setMenu(null);
|
this.window.setMenu(null);
|
||||||
this.window.maximize();
|
this.window.maximize();
|
||||||
}
|
}
|
||||||
@@ -56,10 +56,7 @@ class LoginPage {
|
|||||||
error = "The given server url is not a Jellyfin server url";
|
error = "The given server url is not a Jellyfin server url";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// this.apiclient = new ApiClient();
|
|
||||||
});
|
});
|
||||||
} else if (config.get('serverGo') == true) {
|
|
||||||
this.getUserlist();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
getUserlist() {
|
getUserlist() {
|
||||||
|
|||||||
Reference in new issue
Block a user