retrieve blobs using net

This commit is contained in:
buzz-lightsnack-2007 2024-05-11 18:40:27 +08:00
parent 767a01072a
commit 64c039913b

View file

@ -22,7 +22,7 @@ export default class net {
CONNECT = await fetch(URL);
if (CONNECT.ok && !VERIFY_ONLY) {
DATA = await CONNECT.text();
DATA = await CONNECT[(TYPE.toLowerCase().includes('blob')) ? `blob` : `text`]();
if (TYPE
? (TYPE.toLowerCase().includes(`json`) || TYPE.toLowerCase().includes(`dictionary`))