mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-19 19:36:38 +00:00
Websocket connects
This commit is contained in:
@@ -148,7 +148,7 @@ export class Config {
|
||||
}
|
||||
|
||||
public isHybridMode() {
|
||||
return this.rawConfig?.hybrid;
|
||||
return typeof this.rawConfig?.hybrid === "object";
|
||||
}
|
||||
|
||||
public async checkSupporterKey() {
|
||||
|
||||
@@ -67,6 +67,8 @@ export class TokenManager {
|
||||
/**
|
||||
* Get the current valid token
|
||||
*/
|
||||
|
||||
// TODO: WE SHOULD NOT BE GETTING A TOKEN EVERY TIME WE REQUEST IT
|
||||
async getToken(): Promise<string> {
|
||||
if (!this.token) {
|
||||
if (this.isRefreshing) {
|
||||
|
||||
Reference in New Issue
Block a user