res.json type fixes
This commit is contained in:
@@ -72,6 +72,7 @@ async function mreq(method, url, bodyIn, extra = {}) {
|
||||
}, extra)
|
||||
|
||||
const res = await fetch(baseUrl + url, opts)
|
||||
/** @type {any} */
|
||||
const root = await res.json()
|
||||
|
||||
if (!res.ok || root.errcode) {
|
||||
|
||||
Reference in New Issue
Block a user