We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 042ee50 commit 72cf1b2Copy full SHA for 72cf1b2
example/src/main/scala/example/Example.scala
@@ -123,9 +123,7 @@ object XMLHttpRequest{
123
@JSExport
124
def main(pre: html.Pre) = {
125
val xhr = new dom.XMLHttpRequest()
126
- xhr.open("GET",
127
- "https://www.boredapi.com/api/activity?type=recreational"
128
- )
+ xhr.open("GET", "https://www.boredapi.com/api/activity")
129
xhr.onload = { (e: dom.Event) =>
130
if (xhr.status == 200) {
131
pre.textContent = xhr.responseText
@@ -164,8 +162,7 @@ object AjaxExtension {
164
162
.ExecutionContext
165
163
.Implicits
166
.global
167
- val url =
168
+ val url = "https://www.boredapi.com/api/activity"
169
Ajax.get(url).foreach { case xhr =>
170
171
}
0 commit comments