Skip to content
Snippets Groups Projects
Unverified Commit 234d91a8 authored by FineArchs's avatar FineArchs Committed by GitHub
Browse files

misskey-js: APIClientにURL末尾の/を除去する処理を追加 (#15132)

parent e8bf6285
No related branches found
No related tags found
2 merge requests!9272025.2.2,!886Merge upstream 2025.2.0
......@@ -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を使う場合は無名関数でラップして使用する
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment