fix: Moved to manual plugin version checking and fixed some steam deck issues.
This commit is contained in:
parent
5593985884
commit
641eb2fcd5
13 changed files with 219 additions and 28 deletions
|
|
@ -44,7 +44,7 @@ export default class RommIntegration implements PluginType<SettingsType>
|
|||
async getAccessToken (config: Conf<SettingsType>)
|
||||
{
|
||||
if (process.env.ROMM_CLIENT_TOKEN) return process.env.ROMM_CLIENT_TOKEN;
|
||||
const client_token = await config.get('clientApiToken');
|
||||
const client_token = config.get('clientApiToken');
|
||||
if (client_token) return client_token;
|
||||
return (await secrets.get({ service: 'gameflow', name: 'romm_access_token' })) ?? undefined;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue