mirror of
https://github.com/nathonius/obsidian-github-link.git
synced 2026-07-22 09:20:25 +00:00
Merge pull request #148 from nathonius/fix/142/oauth-404
🐛 fix: #142 Trim oauth client id of whitespace
This commit is contained in:
commit
be2aa15f32
1 changed files with 4 additions and 4 deletions
|
|
@ -90,7 +90,7 @@ export class AccountSettings {
|
|||
text.setValue(this.newAccount!.clientId ?? "");
|
||||
text.setPlaceholder("Client ID");
|
||||
text.onChange((value) => {
|
||||
this.newAccount!.clientId = value;
|
||||
this.newAccount!.clientId = value.trim();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
@ -120,7 +120,7 @@ export class AccountSettings {
|
|||
text.setPlaceholder("Personal Access Token / OAuth Token");
|
||||
text.setValue(this.newAccount!.token);
|
||||
text.onChange((value) => {
|
||||
this.newAccount!.token = value;
|
||||
this.newAccount!.token = value.trim();
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -195,7 +195,7 @@ export class AccountSettings {
|
|||
text.setValue(account.clientId ?? "");
|
||||
text.setPlaceholder("Client ID");
|
||||
text.onChange((value) => {
|
||||
account.clientId = value;
|
||||
account.clientId = value.trim();
|
||||
void this.saveCallback();
|
||||
});
|
||||
});
|
||||
|
|
@ -227,7 +227,7 @@ export class AccountSettings {
|
|||
text.setPlaceholder("Personal Access Token / OAuth Token");
|
||||
text.setValue(account.token);
|
||||
text.onChange((value) => {
|
||||
account.token = value;
|
||||
account.token = value.trim();
|
||||
void this.saveCallback();
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue