mirror of
https://github.com/artegoser/pimi-launcher-core.git
synced 2025-02-23 20:51:30 +03:00
Version bump, warnings, code refactor!
This commit is contained in:
parent
69a754721f
commit
d83aadc4c3
3 changed files with 4 additions and 4 deletions
|
@ -417,9 +417,7 @@ class Handler {
|
|||
const minArgs = this.options.overrides.minArgs || 5;
|
||||
if(args.length < minArgs) args = args.concat(this.version.minecraftArguments ? this.version.minecraftArguments.split(' ') : this.version.arguments.game);
|
||||
|
||||
if({}.toString.call(this.options.authorization) === "[object Promise]") {
|
||||
this.options.authorization = await this.options.authorization;
|
||||
}
|
||||
this.options.authorization = await Promise.resolve(this.options.authorization);
|
||||
|
||||
const fields = {
|
||||
'${auth_access_token}': this.options.authorization.access_token,
|
||||
|
|
Loading…
Add table
Reference in a new issue