Skip to content

Commit afe9542

Browse files
committed
Merge pull request #37 from rinfield/topic/AjaxTimeout
Honor timeout parameter in extensions.Ajax.apply
2 parents 3ad767e + 4b54d67 commit afe9542

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/scala/org/scalajs/dom/extensions/Extensions.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ object Ajax{
191191
}
192192
}
193193
req.open(method, url)
194+
req.timeout = timeout
194195
req.withCredentials = withCredentials
195196
headers.foreach(x => req.setRequestHeader(x._1, x._2))
196197
req.send(data)

0 commit comments

Comments
 (0)