diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2018-01-19 09:22:30 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-01-19 09:22:30 +0900 |
| commit | d8f8730a7423c2c7a3ccc0365680319c2ff57f14 (patch) | |
| tree | 9bc1f9bdcffcbc08343def636a89c9ac8c990309 /src/web/app/common/scripts/api.ts | |
| parent | Show the licenses in the doc (diff) | |
| download | sharkey-d8f8730a7423c2c7a3ccc0365680319c2ff57f14.tar.gz sharkey-d8f8730a7423c2c7a3ccc0365680319c2ff57f14.tar.bz2 sharkey-d8f8730a7423c2c7a3ccc0365680319c2ff57f14.zip | |
Update api.ts
Diffstat (limited to 'src/web/app/common/scripts/api.ts')
| -rw-r--r-- | src/web/app/common/scripts/api.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/web/app/common/scripts/api.ts b/src/web/app/common/scripts/api.ts index 2008e6f5ac..bba838f56b 100644 --- a/src/web/app/common/scripts/api.ts +++ b/src/web/app/common/scripts/api.ts @@ -40,7 +40,7 @@ export default (i, endpoint, data = {}): Promise<{ [x: string]: any }> => { } else { res.json().then(err => { reject(err.error); - }); + }, reject); } }).catch(reject); }); |