Skip to content

Commit

Permalink
misskey-js: APIClientにURL末尾の/を除去する処理を追加 (#15132)
Browse files Browse the repository at this point in the history
  • Loading branch information
FineArchs authored Dec 15, 2024
1 parent e8bf628 commit 234d91a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/misskey-js/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class APIClient {
credential?: APIClient['credential'];
fetch?: APIClient['fetch'] | null | undefined;
}) {
this.origin = opts.origin;
this.origin = opts.origin.replace(/\/$/, '');
this.credential = opts.credential;
// ネイティブ関数をそのまま変数に代入して使おうとするとChromiumではIllegal invocationエラーが発生するため、
// 環境で実装されているfetchを使う場合は無名関数でラップして使用する
Expand Down

0 comments on commit 234d91a

Please sign in to comment.