@@ -1263,18 +1263,8 @@
credentials: 'omit',
headers: { Accept: 'application/json' }
}).then(function (res) {
- return res.json().then(function (data) {
- try {
- alert(
- 'getWxConfig HTTP ' +
- res.status +
- '\n' +
- JSON.stringify(data, null, 2)
- );
- } catch (alertErr) {}
- if (!res.ok) throw new Error('HTTP ' + res.status);
- return data;
- });
+ if (!res.ok) throw new Error('HTTP ' + res.status);
+ return res.json();
});
}