表現を変更

This commit is contained in:
tamaina 2021-09-21 19:37:50 +09:00
parent 2c6919cc54
commit e1bf59cd31

View file

@ -47,7 +47,7 @@ export class APIClient {
this.origin = opts.origin;
this.credential = opts.credential;
// ネイティブ関数をそのまま変数に代入して使おうとするとChromiumではIllegal invocationエラーが発生するため、
// 環境で用意されているfetchを使う場合は無名関数でラップして使用する
// 環境で実装されているfetchを使う場合は無名関数でラップして使用する
this.fetch = opts.fetch || ((...args) => fetch(...args));
}