Skip to content

Commit b0175a1

Browse files
committed
doc: add upload to GMxhr
1 parent e84c350 commit b0175a1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

content/pages/api/gm.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ let control = GM_xmlhttpRequest(details)
594594

595595
When absent, an inverted value of Greasemonkey4-compatible `withCredentials` is used. Note that Violentmonkey sends cookies by default, like Tampermonkey, but unlike Greasemonkey4 (same-origin `url` only).
596596

597-
Event handlers:
597+
Event handlers are functions that receive the response object detailed further down below:
598598

599599
- <Field name="onabort?" type="() => void" />
600600
- <Field name="onerror?" type="() => void" />
@@ -605,7 +605,9 @@ let control = GM_xmlhttpRequest(details)
605605
- <Field name="onreadystatechange?" type="() => void" />
606606
- <Field name="ontimeout?" type="() => void" />
607607

608-
Each event handler is a *function* that accepts one argument `responseObject`
608+
- <Field name="upload?" type="Object" comment="since VM2.32.0" />
609+
610+
Contains event handlers to track upload progress of your `data`, same as the event handlers above.
609611

610612
> [!NOTE]
611613
>

0 commit comments

Comments
 (0)