mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 11:47:23 +03:00
Typo
This commit is contained in:
parent
4c4cc585c7
commit
2f188770e5
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
const q = require('q');
|
||||
const request = (opts) => {
|
||||
const expectingJSONOnSucess = opts.json;
|
||||
const expectingJSONOnSuccess = opts.json;
|
||||
if (opts.json) {
|
||||
opts.json = false;
|
||||
}
|
||||
|
@ -13,7 +13,7 @@ const request = (opts) => {
|
|||
throw new Error(body);
|
||||
}
|
||||
|
||||
if (expectingJSONOnSucess) {
|
||||
if (expectingJSONOnSuccess) {
|
||||
body = JSON.parse(body);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue