aboutsummaryrefslogtreecommitdiffstats
path: root/src/html/xmlhttprequest.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/html/xmlhttprequest.nim')
-rw-r--r--src/html/xmlhttprequest.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html/xmlhttprequest.nim b/src/html/xmlhttprequest.nim
index 560a54e9..9fff6c1d 100644
--- a/src/html/xmlhttprequest.nim
+++ b/src/html/xmlhttprequest.nim
@@ -393,7 +393,7 @@ proc responseText(ctx: JSContext; this: XMLHttpRequest): JSValue {.jsfget.} =
proc overrideMimeType(this: XMLHttpRequest; s: string): DOMResult[void]
{.jsfunc.} =
- if this.readyState notin {xhrsLoading, xhrsDone}:
+ if this.readyState in {xhrsLoading, xhrsDone}:
return errDOMException("readyState must not be loading or done",
"InvalidStateError")
#TODO parse