From b0ad909c2eb7890260edeeb2f4747c96e26cf50e Mon Sep 17 00:00:00 2001 From: Sebastian Wessel Date: Fri, 12 Jul 2024 09:05:43 +0100 Subject: [PATCH] doc: update example --- docs/example.html | 8 ++++---- example/browser/playground.html | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/example.html b/docs/example.html index 05b79f3..964cffa 100644 --- a/docs/example.html +++ b/docs/example.html @@ -96,17 +96,17 @@ status: res.status, ok: res.ok, statusText: res.statusText, - json: () => res.json(), - text: () => res.text(), + json: async () => await res.json(), + text: async () => await res.text(), formData: () => res.formData(), headers: res.headers, type: res.type, url: res.url, - blob: () => res.blob(), + blob: async () => await res.blob(), bodyUsed: res.bodyUsed, redirected: res.redirected, body: res.body, - arrayBuffer: () => res.arrayBuffer(), + arrayBuffer: async () => await res.arrayBuffer(), clone: () => res.clone(), } } diff --git a/example/browser/playground.html b/example/browser/playground.html index 05b79f3..964cffa 100644 --- a/example/browser/playground.html +++ b/example/browser/playground.html @@ -96,17 +96,17 @@ status: res.status, ok: res.ok, statusText: res.statusText, - json: () => res.json(), - text: () => res.text(), + json: async () => await res.json(), + text: async () => await res.text(), formData: () => res.formData(), headers: res.headers, type: res.type, url: res.url, - blob: () => res.blob(), + blob: async () => await res.blob(), bodyUsed: res.bodyUsed, redirected: res.redirected, body: res.body, - arrayBuffer: () => res.arrayBuffer(), + arrayBuffer: async () => await res.arrayBuffer(), clone: () => res.clone(), } }